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

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 gh-5983.

Closes gh-6719
Fixes gh-7494
Re gh-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
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.