X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fmap.js;h=d269a9574aec018f21894c08aeb674341852a3e5;hp=a3a459b5675a9afab3d44a0e454fd6e71b6e7dc9;hb=4325517451df94848f3457b68572628d82b4e6d9;hpb=1222624d3c9ff8811b882b5058b87c36dff06b72 diff --git a/js/map.js b/js/map.js index a3a459b..d269a95 100644 --- a/js/map.js +++ b/js/map.js @@ -427,6 +427,10 @@ var mapEvHandler = { handleEvent: function(aEvent) { var touchEvent = aEvent.type.indexOf('touch') != -1; + // Bail out if the event is happening on an input. + if (aEvent.target.tagName.toLowerCase() == "input") + return; + // Bail out on unwanted map moves, but not zoom or keyboard events. if (aEvent.type.indexOf("mouse") === 0 || aEvent.type.indexOf("touch") === 0) { // Bail out if this is neither a touch nor left-click.