Skip to content

Commit

Permalink
Events: Fixes the problem that touchend events were stopped
Browse files Browse the repository at this point in the history
(preventing vmouseup-s) if taphold is set to prevent a following tap event

This refines the modifications made in jquery-archivegh-5983.

Closes jquery-archivegh-6719
Fixes jquery-archivegh-7494
Re jquery-archivegh-5983
  • Loading branch information
BendingBender authored and Gabriel Schulhof committed Jun 13, 2014
1 parent 85cfc7b commit f95bec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/events/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ define( [ "jquery", "../vmouse", "../support/touch" ], function( jQuery ) {
if ( !isTaphold && origTarget === event.target ) {
triggerCustomEvent( thisObject, "tap", event );
} else if ( isTaphold ) {
event.stopPropagation();
event.preventDefault();
}
}

Expand Down

0 comments on commit f95bec6

Please sign in to comment.