diff --git a/static/madmin/static/js/madmin.js b/static/madmin/static/js/madmin.js index 1ca81f2b1..4a669781a 100644 --- a/static/madmin/static/js/madmin.js +++ b/static/madmin/static/js/madmin.js @@ -1774,11 +1774,24 @@ new Vue({ layer.setStyle({ opacity: 1.0 }); layer.pm.enable({ snappable: false, allowSelfIntersection: allowSelfIntersection }); + let dragging = false + layer.on("pm:markerdragstart", function() { + if (dragging) { + // ignore multiple drag starts (left + right mouse buttons at the same time) + return; + } + + dragging = true; mouseEventsIgnore.enableIgnore(); }); layer.on("pm:markerdragend", function() { + if (!dragging) { + return; + } + + dragging = false; mouseEventsIgnore.disableIgnore(); }); } diff --git a/static/madmin/templates/map.html b/static/madmin/templates/map.html index 6e9b7e593..df81925cb 100644 --- a/static/madmin/templates/map.html +++ b/static/madmin/templates/map.html @@ -20,10 +20,10 @@ - - + + - + {% endblock %} {% block content %}