Permalink
Browse files

Taphold: Prevent edge case of taphold on link opening link. Thanks @j…

…tblin Fixes #5983 - 3803 taphold not to emit tap event option
  • Loading branch information...
arschmitz committed May 9, 2013
1 parent 57e857f commit 49bb0338acc476770270cfe7d5744e1df9fe50ab
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/events/touch.js
View
@@ -112,6 +112,8 @@ define( [ "jquery", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
// the same as the stop target.
if ( !isTaphold && origTarget === event.target ) {
triggerCustomEvent( thisObject, "tap", event );
} else if ( isTaphold ) {
event.stopPropagation();
}
}

0 comments on commit 49bb033

Please sign in to comment.