Move with Gesture - problem - it Jumps #947
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 copying from this wonderful demo - which works well - https://codesandbox.io/s/r3f-train-l900i?file=/src/App.js:3528-3567
and trying to adapt it to work horizontally instead of vertically. I can get it to work for the wheel, just applying it to the X value instead of the Y and it all works as expected. But when I try to change the onDrag. it jumps when you touch the screen instead of staying where it is and continuing smoothly.
this demo shows the same problem - https://codesandbox.io/s/r3f-gesture-camera-for-medium-9br9l?from-embed
it jumps to where your mouse click is. I can't seem to find what is making the first sample "stay put" and be smooth.
thanks,
Dale
Beta Was this translation helpful? Give feedback.
All reactions