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

Commit

Permalink
Taphold: Fix incorrect checking of $.event.special.tap.emitTapOnTaphold
Browse files Browse the repository at this point in the history
Fixes #6342 - emitTapOnTaphold behaviour is the wrong way round
  • Loading branch information
arschmitz committed Aug 15, 2013
1 parent a270eb5 commit 69ed6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/events/touch.js
Expand Up @@ -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 } ) );
Expand Down

0 comments on commit 69ed6ef

Please sign in to comment.