Skip to content

Commit

Permalink
Revert "fix(gestures): revert fix for dragging. Fixes #3695"
Browse files Browse the repository at this point in the history
This reverts commit 1b0d3dd.
  • Loading branch information
mlynch committed Dec 31, 2015
1 parent 0d82456 commit 9780c40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/utils/gestures.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,9 +1171,8 @@

} else if (!this.preventedFirstMove && ev.srcEvent.type == 'touchmove') {
// Prevent gestures that are not intended for this event handler from firing subsequent times

if (inst.options.prevent_default_directions.length === 0
|| 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) {
ev.srcEvent.preventDefault();
}
this.preventedFirstMove = true;
Expand Down

0 comments on commit 9780c40

Please sign in to comment.