compose-dnd icon indicating copy to clipboard operation
compose-dnd copied to clipboard

Animation Jank when letting go of Dragged item outside of Reorder Container

Open Lawand-11 opened this issue 5 months ago • 0 comments

When I drag an Item outside of the reorder container, the drop target it was last hovered over is the destination for the dragged item. I am ok with this behavior. However, it animates the dragged item to go back to it's original position first, then teleports it over to where it should be. At first, I thought this was due to how I updated my state in the onDragEnter, but in this simple example I created, there is no state involved whatsoever. I was wondering if this is an actual issue or error on my part. I also tried to use the onDragExit, but I could not get that to be called no matter what I did, which I found odd considering the drag would have to "exit" at some point, right? I have a short video and code snippet of the composable shown. The app is using compose version 1.5.0, and kotlin version 1.9.0.

Image

https://github.com/user-attachments/assets/48bfd18a-cf63-4527-8406-8f060b17f9ad

Lawand-11 avatar Aug 10 '25 05:08 Lawand-11