Closed pouemes closed 1 year ago
This is a issue with the plugin / Firefox, because it uses the old mousewheel event listener instead of wheel
to prevent zooming on the map. Firefox doesn't fire mousewheel
anymore: https://plnkr.co/edit/sbrPjG2j2GRJ3Av0
You use this simple workaround:
your code ....
// adding the controller to the map
map.addControl( searchControl ); // or searchControl.addTo(map);
// disable zoom scrolling in the search container
L.DomEvent.disableScrollPropagation(searchControl.getContainer());
yes work now: in leaflet-search.src.js
line 318 replace .on(tool, 'mousewheel', function(e) {
by .on(tool, 'wheel', function(e) {
take this example with leaflet-search 3.02 https://opengeo.tech/maps/leaflet-search/examples/geojson-layer.html replace https://unpkg.com/leaflet@1.3.0/dist/leaflet.css and https://unpkg.com/leaflet@1.3.0/dist/leaflet.js by leaflet version 1.7.1 or 1.8.0
search for m then try to scroll on the result, if it work with chrome edge and opera, it doen't work with firefox pehaps someone could understand why?