Merge pull request #1381 from konvajs/revert-1377-revert-1372-cg/touch_click_propagation

Revert "Revert "make sure `preventDefault()` is not called on touchend-events per default""
This commit is contained in:
Anton Lavrenov 2022-08-05 10:33:16 -05:00 committed by GitHub
commit 865d9ca663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -737,7 +737,7 @@ export class Stage extends Container<Layer> {
// always call preventDefault for desktop events because some browsers
// try to drag and drop the canvas element
if (evt.cancelable) {
if (evt.cancelable && eventType !== "touch") {
evt.preventDefault();
}
}