From 0dc49d2de3f2f2f042e50424dca5658eabf7c84f Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 14 Feb 2024 17:54:48 +0100 Subject: [PATCH] fix: do not try to animate the panel The panel inherits from the classic Popup, but given it's fixed on the UI, it does not make sense to try to move it, and it some situation there is a race condition that make Leaflet try to animate but this fails --- umap/static/umap/js/umap.popup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.popup.js b/umap/static/umap/js/umap.popup.js index 6c85ba57..0ab65b1e 100644 --- a/umap/static/umap/js/umap.popup.js +++ b/umap/static/umap/js/umap.popup.js @@ -96,6 +96,7 @@ U.Popup.Panel = U.Popup.extend({ _updateLayout: function () {}, _updatePosition: function () {}, _adjustPan: function () {}, + _animateZoom: function () {}, }) U.Popup.SimplePanel = U.Popup.Panel // Retrocompat.