mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-12-15 16:43:38 +00:00
FIx a bug where touch scrolling on the map's filters popup would still be passed through to the map. Closes #72
This commit is contained in:
@@ -249,6 +249,7 @@ $(document).ready(function() {
|
|||||||
setUpMap();
|
setUpMap();
|
||||||
// Call loadOptions(), this will then trigger loading spots and setting up timers.
|
// Call loadOptions(), this will then trigger loading spots and setting up timers.
|
||||||
loadOptions();
|
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.disableScrollPropagation(document.getElementById('maptools'));
|
||||||
|
L.DomEvent.disableClickPropagation(document.getElementById('maptools'));
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user