From: Dan Stowell Date: Sat, 8 Mar 2014 10:48:01 +0000 (+0000) Subject: fix firefox behaviour when dragging pointer from the tray to the map X-Git-Tag: live~5625^2~33^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f28676c07d25b803237278c668281a50be9ff605?hp=19513826c5d2e5bef107e56c75e1bd2aa794d10b fix firefox behaviour when dragging pointer from the tray to the map --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index fc8e8ff46..0a11b4899 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -357,7 +357,7 @@ $(document).ready(function () { $(".routing").show(); $(".query_wrapper.routing [name=route_from]").focus(); $("#map").on('dragend dragover',function(e) { e.preventDefault(); }); - $("#map").on('drop',function(e) { OSM.routing.handleDrop(e); }); + $("#map").on('drop',function(e) { OSM.routing.handleDrop(e); e.preventDefault(); }); $(".routing_marker").on('dragstart',function(e) { e.originalEvent.dataTransfer.effectAllowed = 'move'; e.originalEvent.dataTransfer.setData('id', this.id);