Skip to content

Commit

Permalink
Reset tapPrevented state on next down
Browse files Browse the repository at this point in the history
Fixes #1590 Tap event not firing the first time after tracking another element
  • Loading branch information
dfreedm committed May 22, 2015
1 parent a640b7e commit 9b0bdf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/standard/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,16 @@
},

mousedown: function(e) {
POINTERSTATE.tapPrevented = false;
this.save(e);
},

click: function(e) {
this.forward(e);
},

touchstart: function(e) {
POINTERSTATE.tapPrevented = false;
this.save(e.changedTouches[0]);
},
touchend: function(e) {
Expand All @@ -450,7 +453,6 @@
});
}
}
POINTERSTATE.tapPrevented = false;
this.reset();
}
});
Expand Down

0 comments on commit 9b0bdf5

Please sign in to comment.