From c50e21e395a6f46fa4da31e82cbcecfb2d9f1365 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 17 Oct 2023 21:15:47 +0200 Subject: [PATCH] Release scroll wheel zoom on drop --- umap/static/umap/js/umap.controls.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index f24bdf69..d1ab87db 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -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++) {