From 306ae634d914dabcca192f5ac7630a3833deb9a8 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sun, 2 Mar 2014 16:55:45 +0100 Subject: [PATCH] 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) --- js/map.js | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.43.0