MohamedRejeb / compose-dnd

Compose DND is a library that allows you to easily add drag and drop functionality to your Jetpack Compose or Compose Multiplatform projects.
Apache License 2.0
299 stars 7 forks source link

DragOver event #9

Closed gochev closed 3 months ago

gochev commented 3 months ago

Currently you can use dragAndDropState?.draggedItem to find out when you are dragging item so we can show the drop target.

However it will be handy if we show the drop target only when we are over it or in close proximity.

Currently I have a lot of drop targets and when the dragging starts I have to show all of them even when the user is gonna drop only in a single one of them, instead I would want to only show the one that is bellow his drag item.

gochev commented 3 months ago

I tried to use the hover event from interaction source but it’s not fired during drag as it seem :(

gochev commented 3 months ago

ignore me I can totally use dragAndDropState?.hoveredDropTargetKey == key