zcreativelabs / react-simple-maps

Beautiful React SVG maps with d3-geo and topojson using a declarative api.
https://www.react-simple-maps.io/
MIT License
3.11k stars 426 forks source link

Non passive wheel event for ZoomableGroup #312

Open shaxulyan-hovhannes opened 1 year ago

shaxulyan-hovhannes commented 1 year ago

Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. Have such an issue after adding ZoomableGroup Component.

amir0ff commented 1 year ago

I'm here also because I was looking for a way to disable the mouse "wheel" event to prevent scrolling to a certain map.zoom level...