Skip to content

Commit

Permalink
Merge pull request #1849 from zhengxiongwei520/master
Browse files Browse the repository at this point in the history
Resolve the issue of other canvases being unable to interact when overlapping on mobile devices.
  • Loading branch information
lavrton authored Nov 5, 2024
2 parents e47d548 + e1edd12 commit db71b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ export class Stage extends Container<Layer> {
// 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();
}
}
Expand Down

0 comments on commit db71b4b

Please sign in to comment.