Permalink
Browse files
Fix TAP_DISTANCE check
- Loading branch information...
Showing
with
1 addition
and 1 deletion.
-
+1
−1
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