X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fmap.js;h=d269a9574aec018f21894c08aeb674341852a3e5;hp=a3a459b5675a9afab3d44a0e454fd6e71b6e7dc9;hb=8389557a642218382b7294fde519389b72551388;hpb=afa031872dc73ded1c8f1bed53600439bb499b85 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.