Release scroll wheel zoom on drop

This commit is contained in:
Yohan Boniface 2023-10-17 21:15:47 +02:00
parent eda14bd742
commit c50e21e395

View file

@ -345,6 +345,7 @@ L.U.DropControl = L.Class.extend({
},
drop: function (e) {
this.map.scrollWheelZoom.enable()
this.dropzone.classList.remove('umap-dragover')
L.DomEvent.stop(e)
for (let i = 0, file; (file = e.dataTransfer.files[i]); i++) {