Permalink
Browse files

Events: Fixes the problem that touchend events were stopped

(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...
1 parent 85cfc7b commit f95bec6a9636e47a645a2861f4eaf077f19521a1 @BendingBender BendingBender committed with gabrielschulhof Nov 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/events/touch.js
View
2 js/events/touch.js
@@ -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();
}
}

0 comments on commit f95bec6

Please sign in to comment.