We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d82456 commit 9780c40Copy full SHA for 9780c40
js/utils/gestures.js
@@ -1171,9 +1171,8 @@
1171
1172
} else if (!this.preventedFirstMove && ev.srcEvent.type == 'touchmove') {
1173
// 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) {
+ if (inst.options.prevent_default_directions.length > 0
+ && inst.options.prevent_default_directions.indexOf(ev.direction) != -1) {
1177
ev.srcEvent.preventDefault();
1178
}
1179
this.preventedFirstMove = true;
0 commit comments