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/
310 stars 47 forks source link

feat(scroll): adding ability to scroll #11

Closed ashbrowning closed 4 years ago

ashbrowning commented 4 years ago

Might need some guidance on how best to fit this in. The default behaviour of the shouldInterceptWheel prop detects whether scaling should occur. If this function returns false, _handlerWheel() currently returns. This PR adds scrolling behaviour in this instance, which is what I'd expect with a two-finger scroll gesture on a trackpad

10

retyui commented 4 years ago

@ashbrowning thanks for catching this