Permalink
Browse files

Fixed tap so that quick horizontal/vertical swipes did not cause tap …

…events
  • Loading branch information...
1 parent fd3167c commit 03897328ddc9bd46bdc2cd3848f67a406a82454e @bmomberger-cengage bmomberger-cengage committed with MindTap User Sep 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 event/tap/tap.js
View
@@ -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})

0 comments on commit 0389732

Please sign in to comment.