Merge pull request #13 from danstowell/jsrouting-ffoxdragok
fix firefox behaviour when dragging pointer from the tray to the map
This commit is contained in:
commit
3ddda7319c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue