-
Hi i'm trying to implement some bounds for an x value when dragging an element. Basically i need the bounds to be 100px from the sides of the window. I have a codesandbox where i'm partly there but cannot resume dragging after the event has been cancelled. Is this the recommended way to implement this type of behaviour? I couldnt see anything in the docs about this. https://codesandbox.io/s/ko68lqp9pv Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey I've just updated the readme with an example that handles boundaries. Again, using temp is the way to go. |
Beta Was this translation helpful? Give feedback.
-
Amazing, thank you so much for your help @dbismut |
Beta Was this translation helpful? Give feedback.
Hey I've just updated the readme with an example that handles boundaries.
https://codesandbox.io/s/r7xnzk4x0o
Again, using temp is the way to go.