From 7230af824f7b08f24e4bab3305442d5c29d91bbb Mon Sep 17 00:00:00 2001 From: Dmytro Soldatov Date: Mon, 2 Dec 2024 16:35:26 +0200 Subject: [PATCH] fix input event mode --- src/Input.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Input.ts b/src/Input.ts index df5bb94..73e0371 100644 --- a/src/Input.ts +++ b/src/Input.ts @@ -109,7 +109,7 @@ export class Input extends Container this._secure = options.secure ?? false; this.cursor = 'text'; - this.interactive = true; + this.eventMode = 'static'; this.on('pointertap', () => { @@ -246,7 +246,7 @@ export class Input extends Container } this._bg.cursor = 'text'; - this._bg.interactive = true; + this._bg.eventMode = 'static'; this.addChildAt(this._bg, 0);