From: Philipp Spitzer Date: Sat, 2 Jan 2021 11:04:38 +0000 (+0100) Subject: Prevent map zooming with mouse wheel. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/mediawiki_extensions/wrmap.git/commitdiff_plain/df1008bc626078b833e19b50537c18b6792a0a6d Prevent map zooming with mouse wheel. --- diff --git a/wrmap.js b/wrmap.js index ab45a89..de22a91 100644 --- a/wrmap.js +++ b/wrmap.js @@ -351,6 +351,9 @@ function init_wrmap(i, jq_map) { attributionOptions: { collapsible: false } + }), + interactions: ol.interaction.defaults({ + mouseWheelZoom: false }) });