mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 01:31:01 +08:00
fix: Resolve the issue of other canvases being unable to interact when overlapping on mobile devices
This commit is contained in:
parent
e47d54889c
commit
e1edd1241f
@ -754,7 +754,7 @@ export class Stage extends Container<Layer> {
|
|||||||
// TODO: are we sure we need to prevent default at all?
|
// 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
|
// do not call this function on mobile because it prevent "click" event on all parent containers
|
||||||
// but apps may listen to it.
|
// but apps may listen to it.
|
||||||
if (evt.cancelable && eventType !== 'touch') {
|
if (evt.cancelable && eventType !== 'touch' && eventType !== 'pointer') {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user