Hi I have Drag and drop problem with Compose Desk...
# compose
m
Hi I have Drag and drop problem with Compose Desktop. I have trouble with removing Drag Targets, when implementing Drag and Drop with Compose Desktop. I have implemented Drag and drop on the desktop using the example with LongPressDraggable and using a SnapshotStateList with Data To Drop items. I am using the DragTarget component to place svg images, that I place placeRelative(x, y). Works fine to drag from a menu and Add new DragTargets in a Box component, placing the DragTargets and their svg images relatively in the Box in a component. Can also Drag and Drop those fine around the Box. Works fine on both Windows and Mac. But I have implemented a delete function with a DropTarget and works fine dragging the DragTarget to the DropTarget and the svg Image disappear from the surface if I remove the DragTarget from the SnapshotStateList. But next time I Drag, then strange things happens, sometimes the DragTarget comes back even though its deleted, some times wrong DragTarget is dragged. This happens only after I have Delete a DragTarget. Then the Drag and drop stop working. If I restart my application and then drag and drop works again, but only until I delete one DragTarget. Anyone experienced that similar problem?