Leaflet / Leaflet

πŸƒ JavaScript library for mobile-friendly interactive maps πŸ‡ΊπŸ‡¦
https://leafletjs.com
BSD 2-Clause "Simplified" License
40.52k stars 5.77k forks source link

Refactor 'scroll wheel to pixel factor' to be platform & browser independent #8774

Open jonkoops opened 1 year ago

jonkoops commented 1 year ago

I've been able to remove most of the APIs in the Browser namespace. Some of these APIs still remain due to some of our code still relying on platform and browser specific detection.

The following APIs in the Browser namespace are used to calculate the scroll wheel to pixel factor:

We need to find a way to do this calculation without resorting to detecting specific platforms.

Falke-Design commented 1 year ago

I don't think that there is a way around the Browser detection. The problem is that each Browser handles it different so we need to handle different for the browsers

IvanSanchez commented 1 year ago

This should be on hold until #8859 is resolved.