List of steps to reproduce (step by step, including full links if applicable):
- Visit pl or dewiki
- Article with coordantes e.g.: https://pl.wikipedia.org/wiki/Ob%C3%B3z_jeniecki_w_Sandakanie
- Open map on top of the article (pl: "mapa").
- Zoom out (wheel).
What happens?:
Whole page is scrolled down.
What should have happened instead?:
Only the map should change (zoom).
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
If you could patch OL 2.12 then this should work. The file is currently located here:
https://tools.wmflabs.org/osm/libs/openlayers/2.12/OpenLayers.js
Patched version attached (essentially I used VSC to beatify and just changed OpenLayers.Handler.MouseWheel to add event options {passive: false})
Tested on Firefox and Chrome. The changed would work in IE too, but the map is not loaded in IE (at least not on plwiki).
PS: I've checked and the scrolling problem doesn't occur in latest OpenLayers library. But seems like upgrade would require quite a lot of changes in WIWOSM, maybe a re-write even.
Gadget on plwiki: https://pl.wikipedia.org/wiki/MediaWiki:Gadget-maps.js
- Loading https://meta.wikimedia.org/wiki/MediaWiki:OSM.js
- Loading tool forge tool: https://wiwosm.toolforge.org/osm-on-ol/kml-on-ol.php
- Source of the tool: https://github.com/aiomaster/WIWOSM.
- Docs: https://wiki.openstreetmap.org/wiki/WIWOSM.