Skip to content

Commit

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

} 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 1b0d3dd

Please sign in to comment.