Description:
The itinerary control adds a 'mousewheel' listener that calls L.DomEvent.stopPropagation(e), which in Firefox can cause the page to zoom instead of letting the directions pane scroll.
Reproduction:
- Open https://map.project-osrm.org/
- Click two locations to create a route
- Attempt to scroll the directions list with mouse wheel in Firefox — page zooms instead of the list scrolling.
Suggested fix:
Replace the explicit 'mousewheel' handler with L.DomEvent.disableScrollPropagation(this._container) so Leaflet handles cross-browser 'wheel' events correctly.
References:
Thanks!
Description:
The itinerary control adds a 'mousewheel' listener that calls L.DomEvent.stopPropagation(e), which in Firefox can cause the page to zoom instead of letting the directions pane scroll.
Reproduction:
Suggested fix:
Replace the explicit 'mousewheel' handler with L.DomEvent.disableScrollPropagation(this._container) so Leaflet handles cross-browser 'wheel' events correctly.
References:
Thanks!