phteven
10/23/2024, 6:17 PMonGloballyPositioned
combined with bounds.inBounds
on the drop target component.
My drag overlay is a complex component which I would like to reuse because drawDragDecoration
only allows to draw via DrawScope
.
When using startTransfer
on the drag source I noticed that the pointer event frequency and onDrag calls drops down and my custom overlay does not move smoothly.
You can see the difference compared to the red square which is drawn by drawDragDecoration
.
Using startTransfer with drawDragDecoration
: https://share.cleanshot.com/FPNjmRxc
Without startTransfer: https://share.cleanshot.com/DP1h2qJz
1. Is there a better place to bring this issue up?
2. Can I configure the snapback behaviour of the drag decoration?
3. Is that change in the mouse position updates expected when using startTransfer?
4. Are there any plans to render a @Composeable as the drag decorator?