From: Robert Kaiser Date: Sun, 2 Mar 2014 15:55:45 +0000 (+0100) Subject: try to use stopPropagation to make sure touch events aren't handled by the browser... X-Git-Tag: legacy-preGL X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=f172be9b4000615252fec73ece594a0f3d260e31;p=lantea.git try to use stopPropagation to make sure touch events aren't handled by the browser itself (pinch zoom on the Android browser still zooms into the page) --- diff --git a/js/map.js b/js/map.js index 5c93ae5..361420b 100644 --- a/js/map.js +++ b/js/map.js @@ -462,6 +462,10 @@ var mapEvHandler = { handleEvent: function(aEvent) { var touchEvent = aEvent.type.indexOf('touch') != -1; + if (touchEvent) { + aEvent.stopPropagation(); + } + // Bail out if the event is happening on an input. if (aEvent.target.tagName.toLowerCase() == "input") return;