Skip to content

Commit 568b26d

Browse files
authored
[dragelement] Fix passive touchmove
Touchmove event listeners default to true in Chrome. Calling preventDefault inside passive event listeners is not allowed.
1 parent 0ad91e4 commit 568b26d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/dragelement/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ dragElement.init = function init(options) {
163163
if(options.dragmode !== false) {
164164
e.preventDefault();
165165
document.addEventListener('mousemove', onMove);
166-
document.addEventListener('touchmove', onMove);
166+
document.addEventListener('touchmove', onMove, {passive: false});
167167
}
168168

169169
return;

0 commit comments

Comments
 (0)