From e1edd1241f6cf540ca00d9279a74a306c79b5253 Mon Sep 17 00:00:00 2001 From: zhengxiongwei Date: Thu, 31 Oct 2024 17:16:40 +0800 Subject: [PATCH] fix: Resolve the issue of other canvases being unable to interact when overlapping on mobile devices --- src/Stage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stage.ts b/src/Stage.ts index 3c3122454..f2f56d1ab 100644 --- a/src/Stage.ts +++ b/src/Stage.ts @@ -754,7 +754,7 @@ export class Stage extends Container { // TODO: are we sure we need to prevent default at all? // do not call this function on mobile because it prevent "click" event on all parent containers // but apps may listen to it. - if (evt.cancelable && eventType !== 'touch') { + if (evt.cancelable && eventType !== 'touch' && eventType !== 'pointer') { evt.preventDefault(); } }