Permalink
Browse files

Taphold: Fix incorrect checking of $.event.special.tap.emitTapOnTaphold

Fixes #6342 - emitTapOnTaphold behaviour is the wrong way round
  • Loading branch information...
arschmitz committed Aug 15, 2013
1 parent a270eb5 commit 69ed6efa5f12fa16d743a1f8a09b88bd3bc127d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/events/touch.js
View
@@ -122,7 +122,7 @@ define( [ "jquery", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
$document.bind( "vmousecancel", clearTapHandlers );
timer = setTimeout( function() {
- if ( $.event.special.tap.emitTapOnTaphold ) {
+ if ( !$.event.special.tap.emitTapOnTaphold ) {
isTaphold = true;
}
triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );

0 comments on commit 69ed6ef

Please sign in to comment.