Skip to content

Commit 9780c40

Browse files
committed
Revert "fix(gestures): revert fix for dragging. Fixes #3695"
This reverts commit 1b0d3dd.
1 parent 0d82456 commit 9780c40

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

js/utils/gestures.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,9 +1171,8 @@
11711171

11721172
} else if (!this.preventedFirstMove && ev.srcEvent.type == 'touchmove') {
11731173
// Prevent gestures that are not intended for this event handler from firing subsequent times
1174-
1175-
if (inst.options.prevent_default_directions.length === 0
1176-
|| inst.options.prevent_default_directions.indexOf(ev.direction) != -1) {
1174+
if (inst.options.prevent_default_directions.length > 0
1175+
&& inst.options.prevent_default_directions.indexOf(ev.direction) != -1) {
11771176
ev.srcEvent.preventDefault();
11781177
}
11791178
this.preventedFirstMove = true;

0 commit comments

Comments
 (0)