Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 607e09f

Browse files
committed
Fixed Unable to preventDefault inside passive event listene
1 parent 23eae38 commit 607e09f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Agile.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@
346346
347347
disableScroll () {
348348
document.ontouchmove = function (e) {
349-
e.preventDefault()
349+
if (!e.touches) {
350+
e.preventDefault()
351+
}
350352
}
351353
},
352354

0 commit comments

Comments
 (0)