Make upload a smoother experience with some in-app UI and enable it on all platforms
[lantea.git] / js / map.js
index a3a459b5675a9afab3d44a0e454fd6e71b6e7dc9..d269a9574aec018f21894c08aeb674341852a3e5 100644 (file)
--- 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.