dnd-kit-sortable-tree icon indicating copy to clipboard operation
dnd-kit-sortable-tree copied to clipboard

Slight 1-frame visual glitch on drop until state update resolves

Open maxhudson opened this issue 1 year ago • 1 comments

There is a relatively minor, but still noticeable jump upon drop that would be great to be resolved.

I believe the transform that's being applied while dragging gets removed on drop, so there's a 1 frame/processor-tick delay until setState(changedItems) resolves on the next render.

Video here:

https://github.com/Shaddix/dnd-kit-sortable-tree/assets/7915687/55cb2979-8041-4f7e-829d-2319ffbfcd2b

Original related issue: https://github.com/Shaddix/dnd-kit-sortable-tree/issues/19

Let me know if I can provide any more info to help debug!

maxhudson avatar Jan 13 '24 20:01 maxhudson

👋 @maxhudson have you found a workaround by a chance?

kachkaev avatar Nov 08 '24 13:11 kachkaev