From f28676c07d25b803237278c668281a50be9ff605 Mon Sep 17 00:00:00 2001 From: Dan Stowell Date: Sat, 8 Mar 2014 10:48:01 +0000 Subject: [PATCH] fix firefox behaviour when dragging pointer from the tray to the map --- app/assets/javascripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.2