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

Commit 4b94fb0

Browse files
BendingBenderGabriel Schulhof
authored andcommitted
Events: Fixes the problem that touchend events were stopped
(preventing vmouseup-s) if taphold is set to prevent a following tap event This refines the modifications made in gh-5983. (cherry picked from commit f95bec6) Closes gh-6719 Fixes gh-7494 Re gh-5983
1 parent d28b369 commit 4b94fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/events/touch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ define( [ "jquery", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
117117
if ( !isTaphold && origTarget === event.target ) {
118118
triggerCustomEvent( thisObject, "tap", event );
119119
} else if ( isTaphold ) {
120-
event.stopPropagation();
120+
event.preventDefault();
121121
}
122122
}
123123

0 commit comments

Comments
 (0)