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^0 X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=commitdiff_plain;h=306ae634d914dabcca192f5ac7630a3833deb9a8;hp=d0c62ee019f8c1264fda16acf2a2649e23de6e82 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;