Drag gets stuck at clamp limits #274
Unanswered
carmandale
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi Dale, didn't look at the sandbox in details (thanks for it anyway, a sandbox always help!!). Did you try using the https://use-gesture.netlify.app/docs/options/#bounds Note that you don't need to use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to be able to drag with your mouse, to move the scene left and right with limits.
Here is a code sandbox to demonstrate https://codesandbox.io/s/usedrag-gets-stuck-5we3x
When you get to the limits of the left and right movement, it gets "stuck" it seems that maybe it isn't really stuck because if you keep dragging in the opposite direction it will eventually start moving again - but makes for a user experience that feels broken.
I think that I may be using the clamp incorrectly.
thanks for any help,
Dale
Beta Was this translation helpful? Give feedback.
All reactions