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

Commit 0c95ec0

Browse files
author
Łukasz Florczak
authored
Merge pull request #70 from ilkeryilmaz/master
Fixed Unable to preventDefault inside passive event listener
2 parents 9c7402e + 607e09f commit 0c95ec0

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)