Merge pull request #5097 from consul/map_scroll_wheel

Disable scroll wheel for zooming in favor of map zoom buttons
This commit is contained in:
Senén Rodero
2023-03-28 16:34:46 +02:00
committed by GitHub

View File

@@ -117,7 +117,7 @@
return "<a href='/budgets/" + data.budget_id + "/investments/" + data.investment_id + "'>" + data.investment_title + "</a>";
};
mapCenterLatLng = new L.LatLng(mapCenterLatitude, mapCenterLongitude);
map = L.map(element.id).setView(mapCenterLatLng, zoom);
map = L.map(element.id, { scrollWheelZoom: false }).setView(mapCenterLatLng, zoom);
App.Map.maps.push(map);
L.tileLayer(mapTilesProvider, {
attribution: mapAttribution