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

custom layer delay after mouse up

Open 17x opened this issue 4 years ago • 4 comments

bug1

As you see on above GIF , i'm using custom layer now. after i release my dragging item ( mouse up ), that previewing item would sticking on the place where it last showing about 1 seconds, then DragLayerMonitor.isDragging set to false.

like this problem where i came from

17x avatar Sep 06 '22 10:09 17x

have you solved this wired problem?

prallhsu avatar Mar 07 '23 14:03 prallhsu

unfortunately, this is a known issue and described in the React DnD docs for the Custom Drag Layer:

"With this approach, we miss out on default 'return' animation when dropping outside the container."

the workaround that solved it for me was creating a full page dropzone that ultimately does nothing on hover or on drop

alexander2ca avatar May 08 '23 19:05 alexander2ca

unfortunately, this is a known issue and described in the React DnD docs for the Custom Drag Layer:

"With this approach, we miss out on default 'return' animation when dropping outside the container."

the workaround that solved it for me was creating a full page dropzone that ultimately does nothing on hover or on drop

not good but work!!!

MingwieJin avatar Mar 07 '24 07:03 MingwieJin

you can create a droparea with document.body and dont do anything in this droparea can solve this problem

IMSupperkaka avatar Jun 19 '24 03:06 IMSupperkaka