react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

Add preview ref api for Node

Open spellforce opened this issue 2 years ago • 1 comments
trafficstars

Issues

One of the phenomena of Chrome browsers on Mac is that outside the DND range, the Drag or Drop event will be delayed by 250ms, because to play the animation, react-DND uses preview(getEmptyImage()); . Going to overlay causes a problem: it looks stuttering

20230321095759

So the default preview was removed, the default preview was changed to react-dnd's preview, and the preview interface was exposed

20230321100313

This feature only affects the default effect

spellforce avatar Mar 21 '23 02:03 spellforce

This does look much better! I'm not as familiar with the drag and drop api. How would you style the drag preview?

jameskerr avatar May 10 '23 21:05 jameskerr