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.

(cherry picked from commit f95bec6)

Closes gh-6719
Fixes gh-7494
Re gh-5983
  • Loading branch information
BendingBender authored and Gabriel Schulhof committed Jun 13, 2014
1 parent d28b369 commit 4b94fb0
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", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
if ( !isTaphold && origTarget === event.target ) {
triggerCustomEvent( thisObject, "tap", event );
} else if ( isTaphold ) {
event.stopPropagation();
event.preventDefault();
}
}

Expand Down

0 comments on commit 4b94fb0

Please sign in to comment.