camera-controls icon indicating copy to clipboard operation
camera-controls copied to clipboard

Camera Controls - Scrolling

Open MarquesCoding opened this issue 1 year ago • 1 comments

Hi,

I'm currently using these camera control but within with react-three/drei but I'm wondering if this is possible... I'd like to have it so that, when using the scroll wheel it moves the camera up and down (top and bottom - NOT ZOOM) and if I'm pressing shift it will go left to right...

Thanks

MarquesCoding avatar Aug 31 '23 09:08 MarquesCoding

I think you could. try the config example and the boundary one. https://yomotsu.github.io/camera-controls/examples/config.html https://yomotsu.github.io/camera-controls/examples/boundary.html

If you wish to have a more dedicated feature for it, you can make a PR as well!

yomotsu avatar Aug 31 '23 13:08 yomotsu