But this doesn't work. The use case is when dealing with a large map that enables scroll on a page; when scrolling back toward the top of the page with the mouse wheel, if the cursor is on the map component, it will zoom the map before scrolling the page.
Is there a method to retain panning but only allow zooming via button click, or disable mouse wheel zoom? I have the following ZoomableGroup
buttons for handling zoom
and their handler functions
I've tried setting onScroll and onScrollCapture on the both the ComposableMap and the ZoomableGroup like
But this doesn't work. The use case is when dealing with a large map that enables scroll on a page; when scrolling back toward the top of the page with the mouse wheel, if the cursor is on the map component, it will zoom the map before scrolling the page.