retyui / react-quick-pinch-zoom

A react component that providing multi-touch gestures for zooming and dragging on any DOM element.
https://react-quick-pinch-zoom.netlify.app/
308 stars 46 forks source link

Zoom start/end events not firing for wheel events #3

Closed ashbrowning closed 1 year ago

ashbrowning commented 5 years ago

When I zoom on a MacBook trackpad (and therefore firing a wheel event), I'm able to get callbacks for onZoomUpdate, but nothing for onZoomStart and onZoomEnd. Can these be called to facilitate handling updates based on the zoom lifecycle when scrolling/using a trackpad?

Thanks for this package by the way - had fun playing around with it last night!

retyui commented 5 years ago

@ashbrowning Now I do not have time to correct this behavior. You can send your PR I will consider it

retyui commented 1 year ago

you can try alternative library: https://github.com/prc5/react-zoom-pan-pinch