From 4b94fb0ab4d77b01592df3c679239065f4ddeb9d Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Mon, 11 Nov 2013 01:17:53 +0100 Subject: [PATCH] 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 f95bec6a9636e47a645a2861f4eaf077f19521a1) Closes gh-6719 Fixes gh-7494 Re gh-5983 --- js/events/touch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/events/touch.js b/js/events/touch.js index 91017cfb31f..c3ba76e0982 100644 --- a/js/events/touch.js +++ b/js/events/touch.js @@ -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(); } }