Skip to content

Commit

Permalink
Fix TAP_DISTANCE check
Browse files Browse the repository at this point in the history
Fixes #1652
  • Loading branch information
dfreedm committed May 28, 2015
1 parent 5fb2ef3 commit bdf191b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/standard/gestures.html
Expand Up @@ -444,7 +444,7 @@
var dx = Math.abs(e.clientX - this.start.x);
var dy = Math.abs(e.clientY - this.start.y);
// dx,dy can be NaN if `click` has been simulated and there was no `down` for `start`
if (isNaN(dx) || isNaN(dy) || dx <= TAP_DISTANCE || dy <= TAP_DISTANCE) {
if (isNaN(dx) || isNaN(dy) || (dx <= TAP_DISTANCE && dy <= TAP_DISTANCE)) {
// prevent taps from being generated if an event has canceled them
if (!POINTERSTATE.tapPrevented) {
Gestures.fire(e.target, 'tap', {
Expand Down

0 comments on commit bdf191b

Please sign in to comment.