Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Taphold: Prevent edge case of taphold on link opening link. Thanks @j…
Browse files Browse the repository at this point in the history
…tblin Fixes #5983 - 3803 taphold not to emit tap event option
  • Loading branch information
arschmitz committed May 9, 2013
1 parent 57e857f commit 49bb033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/events/touch.js
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 49bb033

Please sign in to comment.