From 03897328ddc9bd46bdc2cd3848f67a406a82454e Mon Sep 17 00:00:00 2001 From: Bradley Momberger/Karen Morand Date: Thu, 27 Sep 2012 15:37:40 -0400 Subject: [PATCH] Fixed tap so that quick horizontal/vertical swipes did not cause tap events --- event/tap/tap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/tap/tap.js b/event/tap/tap.js index 91228123..356cfd30 100644 --- a/event/tap/tap.js +++ b/event/tap/tap.js @@ -32,7 +32,7 @@ $.event.setupHelper( ["tap"], touchStartEvent, function(ev){ function upHandler(event){ stop = data(event); - if ((Math.abs( start.coords[0] - stop.coords[0] ) < 10) || + if ((Math.abs( start.coords[0] - stop.coords[0] ) < 10) && ( Math.abs( start.coords[1] - stop.coords[1] ) < 10) ){ $.each($.event.find(delegate, ["tap"], selector), function(){ this.call(entered, ev, {start : start, end: stop})