daybrush / infinite-viewer

Infinite Viewer is Document Viewer Component with infinite scrolling.
https://daybrush.com/infinite-viewer/
MIT License
283 stars 30 forks source link

Diagonal scrolling with trackpad in react-infinite-viewer #75

Open emedd33 opened 4 months ago

emedd33 commented 4 months ago

Wondering how one can create a diagonal scrolling with with react-infinite-viewer. I see from the main demo that when you swipe by using two fingers on a trackpad you are able to scroll diagonally. This is nicely shown in the daybrush demo https://daybrush.com/infinite-viewer/

However in all the sandbox examples using react-infinite-viewer I'm unable to swipe scroll diagonally. It either goes horizontally or vertically. Is this something that is missing in the react-infinite-viewer?

https://codesandbox.io/p/sandbox/demo-5sr1h?file=/src/Editor/Editor.tsx

Develer commented 3 months ago

useWheelScroll: true option should do the trick