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

Commit 69ed6ef

Browse files
committed
Taphold: Fix incorrect checking of $.event.special.tap.emitTapOnTaphold Fixes #6342 - emitTapOnTaphold behaviour is the wrong way round
1 parent a270eb5 commit 69ed6ef

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
@@ -122,7 +122,7 @@ define( [ "jquery", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
122122
$document.bind( "vmousecancel", clearTapHandlers );
123123

124124
timer = setTimeout( function() {
125-
if ( $.event.special.tap.emitTapOnTaphold ) {
125+
if ( !$.event.special.tap.emitTapOnTaphold ) {
126126
isTaphold = true;
127127
}
128128
triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );

0 commit comments

Comments
 (0)