Skip to content
Browse files

Fix TAP_DISTANCE check

Fixes #1652
  • Loading branch information...
1 parent 5fb2ef3 commit bdf191b80b7abd812bcd93ab2c211ec866182144 @azakus azakus committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/standard/gestures.html
View
2 src/standard/gestures.html
@@ -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', {

0 comments on commit bdf191b

Please sign in to comment.
Something went wrong with that request. Please try again.