-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set draggable position pogrammatically #140
Set draggable position pogrammatically #140
Conversation
The more I think about this, the more I feel that The component keeps track of Thoughts? |
This is what DraggableCore is for. Simply setting a position and changing If you need full control, manage the state in the parent using core.
|
Thanks for replying. DraggableCore works really well for what I was trying to do. I still think there’s something to be gained by modifying the way react-draggable works. Have you considered making it a controlled component? Similar to to how React natively treats If If So, it's really just adding the |
Hi and thank you for developing react-draggable! Really nice and complete! I must agree with @lochstar. Being able to override the values on stop based on custom calculations would be quite powerful. We would be still able to take advantage of other functionalities also. I like the idea of making it a controlled component. 👍 |
@lochstar I like that idea. I'm going to think about implementation. Traveling at the moment so it may be a bit. |
👍 Already use this fork! |
Have some problem( |
I'm also using this branch. Please consider merging |
Misc. cleanup. See #140 for context.
Okay - I'm going ahead with this approach. See |
This is still a WIP - I think it may be more useful to deviate slightly from how React does |
@STRML agree with exactly what you said. If you want to disable dragging could a |
Actually - we already have one, and I forgot about it! I'll make the tweak and release a beta2. |
|
@STRML agree about the disabled and snapping back on drag end. |
|
sweet |
Nice work! |
No description provided.