Drag and Drop #3811
Unanswered
niclashoyer
asked this question in
Q&A
Drag and Drop
#3811
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently trying to implement some kind of drag and drop functionality (basically moving elements on pointer events). I'm currently struggling with shared state, as a
onpointermove
handler on the dragged element is limited, because as soon as the mouse leaves the dragged element, the event is not fired anymore. Most implementations work around this using a shared pointer move handler on a parent element or the document.Is anyone currently working on this? Leptos already has
use_draggable
: https://github.com/Synphonyte/leptos-use/blob/bacd162a9d11b3f1be117851308469e3eec09f30/src/use_draggable.rs#L56Maybe I try to port this to dioxus, but I'm not a profound leptos expert 😅
Beta Was this translation helpful? Give feedback.
All reactions