@energy8platform/game-engine 0.14.5 → 0.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -4417,10 +4417,11 @@ class Modal extends pixi_js.Container {
4417
4417
  // Overlay
4418
4418
  this._overlay = new pixi_js.Graphics();
4419
4419
  this._overlay.eventMode = 'static';
4420
+ this._overlay.on('pointertap', () => {
4421
+ if (this._config.closeOnOverlay)
4422
+ this.hide();
4423
+ });
4420
4424
  this.addChild(this._overlay);
4421
- if (this._config.closeOnOverlay) {
4422
- this._overlay.on('pointertap', () => this.hide());
4423
- }
4424
4425
  // Content container
4425
4426
  this._contentContainer = new pixi_js.Container();
4426
4427
  this.addChild(this._contentContainer);