From 649b57a5708f131e47c8a08a82e489429ddba75c Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sun, 2 Nov 2025 12:07:32 +0000 Subject: [PATCH] FIx a bug where touch scrolling on the map's filters popup would still be passed through to the map. Closes #72 --- webassets/js/map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webassets/js/map.js b/webassets/js/map.js index 564d8f2..2fd4f0f 100644 --- a/webassets/js/map.js +++ b/webassets/js/map.js @@ -249,6 +249,7 @@ $(document).ready(function() { setUpMap(); // Call loadOptions(), this will then trigger loading spots and setting up timers. loadOptions(); - // Prevent scrolling actions in the popup menus being passed through to the map + // Prevent mouse scroll and touch actions in the popup menus being passed through to the map L.DomEvent.disableScrollPropagation(document.getElementById('maptools')); + L.DomEvent.disableClickPropagation(document.getElementById('maptools')); }); \ No newline at end of file