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

Commit 49bb033

Browse files
committed
Taphold: Prevent edge case of taphold on link opening link. Thanks @jtblin Fixes #5983 - 3803 taphold not to emit tap event option
1 parent 57e857f commit 49bb033

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/events/touch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ define( [ "jquery", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
112112
// the same as the stop target.
113113
if ( !isTaphold && origTarget === event.target ) {
114114
triggerCustomEvent( thisObject, "tap", event );
115+
} else if ( isTaphold ) {
116+
event.stopPropagation();
115117
}
116118
}
117119

0 commit comments

Comments
 (0)