Pan the screen - and move the camera - with react-use-gesture #938
Unanswered
carmandale
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am following this codesandbox https://codesandbox.io/s/r3f-train-l900i and this article - https://medium.com/@joooooo308/react-three-fiber-use-gesture-to-move-the-camera-f50288cec862
Instead of the vertical camera movement, I want horizontal movement. So I changed the Y to X and that is working. All in all, scroll wheel is working like I want. But I would also like to be able to use the mouse, or a finger on an ipad or iphone. But with this current implementation, if you touch somewhere else on the screen, it jumps to that point.
I am also getting this message in the console:
My goal is to be able to use the mouse and clicking and dragging to "throw" the camera - mostly horizontal - but with maybe some Y and Z movement - kind of like a 3D version of this - https://codesandbox.io/embed/n9vo1my91p
Thanks for any help or direction.
Dale
Beta Was this translation helpful? Give feedback.
All reactions