mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 04:42:02 +08:00
Merge pull request #1849 from zhengxiongwei520/master
Resolve the issue of other canvases being unable to interact when overlapping on mobile devices.
This commit is contained in:
commit
db71b4ba28
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user