Replies: 1 comment 1 reply
-
The bounds property can be used to set the draggable range. <Draggable bouds={{left: 10, top: 20, right: 30, bottom: 40}}>
{children}
</Draggable> You can prohibit dragging outside of the div element. <div>
<Draggable bouds="parent">
{children}
</Draggable>
<div> |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I currently have a
Draggable
go on thex
axis, but it just keeps and keeps on going. Is there no way to pass some props to make it stop at some point? I don't:Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions