Skip to content

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

@Lawand-11

Description

@Lawand-11

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
Compose-dnd-issue.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions