@energy8platform/game-engine 0.14.4 → 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.esm.js CHANGED
@@ -4416,10 +4416,11 @@ class Modal extends Container {
4416
4416
  // Overlay
4417
4417
  this._overlay = new Graphics();
4418
4418
  this._overlay.eventMode = 'static';
4419
+ this._overlay.on('pointertap', () => {
4420
+ if (this._config.closeOnOverlay)
4421
+ this.hide();
4422
+ });
4419
4423
  this.addChild(this._overlay);
4420
- if (this._config.closeOnOverlay) {
4421
- this._overlay.on('pointertap', () => this.hide());
4422
- }
4423
4424
  // Content container
4424
4425
  this._contentContainer = new Container();
4425
4426
  this.addChild(this._contentContainer);