I am curious how to recreate the way pinch zoom works on map tools like google maps and leaflet.js
On any other site, when you pinch zoom the entire browser windows gets magnified on whatever you are pinch zooming on.
On Google Maps or Leaflet.js, when you pinch zoom on the map it seems to override that functionality and makes the map zoom in and out in the exact same way as it would if you were scrolling with your fingers or a mouse wheel.
How might they go about doing that?
To clarify - I don't want to disable zoom in the viewport either. I just want a specific section of a page to ignore the standard pinch zoom (with track pad or mobile) and instead interpret the pinch zoom as a standard scroll wheel event only