@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.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/react.cjs.js +89 -6
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.esm.js +89 -6
- package/dist/react.esm.js.map +1 -1
- package/dist/ui.cjs.js +4 -3
- package/dist/ui.cjs.js.map +1 -1
- package/dist/ui.esm.js +4 -3
- package/dist/ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/react/applyProps.ts +47 -2
- package/src/react/reconciler.ts +37 -2
- package/src/ui/Modal.ts +3 -4
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);
|