How to handle well drag and links inside a component tree?
#3134
Unanswered
Profesor08
asked this question in
Q&A
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.
-
When I use
dragprops, to handle some gestures, I get in trouble when I try to drag over an link. Default links will not allow you to start dragging, you have to setdraggable=fasleon each link, but navigation tohrefwill happen and you have toevent.preventDefault()at right moment. This makes it difficult to use, because you must to handle everything manually and code becomes messy.There is sandbox: https://stackblitz.com/edit/vitejs-vite-k7ffttmh?file=src%2FApp.tsx
Beta Was this translation helpful? Give feedback.
All reactions