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.

(cherry picked from commit f95bec6)

Closes gh-6719
Fixes gh-7494
Re gh-5983
  • Loading branch information...
1 parent d28b369 commit 4b94fb0ab4d77b01592df3c679239065f4ddeb9d @BendingBender BendingBender committed with gabrielschulhof Nov 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/events/touch.js
View
@@ -117,7 +117,7 @@ define( [ "jquery", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
if ( !isTaphold && origTarget === event.target ) {
triggerCustomEvent( thisObject, "tap", event );
} else if ( isTaphold ) {
- event.stopPropagation();
+ event.preventDefault();
}
}

0 comments on commit 4b94fb0

Please sign in to comment.