Handle inputs while animating drop #1799
Unanswered
itsMapleLeaf
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the experimental version. Right now, draggable elements do not handle inputs while they are animating drop. There's a ~300ms period where you can't pick up the draggable again, which is a really frustrating UX for quick actions. Is there some way I can make it handle inputs while the drop animation is happening?
It would also work for my use case to set the animation duration to 0ms, and/or disable it entirely. But I couldn't find anywhere in the docs how to do that. I see that you can pass
feedback: "none"touseDraggable, but that removes the movement and other things.The only thing I want is to change the behavior of the animation, and I can't see any way to do that without rewriting the positioning logic and other things.
EDIT: I actually ended up patching the
@dnd-kit/dompackage and setting the drop animation duration to 0 😅 but I can't imagine that's the ideal solutionBeta Was this translation helpful? Give feedback.
All reactions