Sortable issues with flickering and performance #613
Replies: 1 comment 1 reply
-
Regards to the flickering with #1 above - I narrowed this down to the dropAnimation property in the 'DragOverlay' element. Or rather, the absence of it. If I include only the property with no value overrides on easing, duration or opacity, it works fine with no flickering. Additionally adding overrides like demo'd in the docs. But the absence or removal causes the flickering. Going deeper, looking at the library source, I see the following in useDropAnimation.d.ts which contains the dropAnimation definition and defaults:
These are the defaults, loaded into the This leads me to believe somewhere else, either the absence of these defaults, or having null or undefined is causing the flickering. |
Beta Was this translation helpful? Give feedback.
-
Hello, great library and thank you. I am running into a few issues with the examples and expanding on them.
DragOverlay
example here, the DragOverlay causes flickering after dropping the item and on the re-render. I have copied the code into the same three files and get this effect. Note, this is a different flickering than in issue Flickering with DragOverlay after drop animation finished #304 . However, when I remove the DragOverlay node and the ref forwarding element (Item) then it works fine with no flickering. I understand the reasons for using the overlay for if the contents are outside the viewport but am trying to determine if this component is necessary. Is this really needed for 'normal' dnd behavior of elements? Why the flickering when using theDragOverlay
?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions