Skip to content

Commit

Permalink
fix: Resolve the issue of other canvases being unable to interact whe…
Browse files Browse the repository at this point in the history
…n overlapping on mobile devices
  • Loading branch information
zhengxiongwei committed Oct 31, 2024
1 parent e47d548 commit e1edd12
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 e1edd12

Please sign in to comment.