tree
tree copied to clipboard
Drag n Drop slow
Hello,
Im facing the issue, that the drag n drop functionality is very slow in my application.
When moving an item in the tree the "hover effect" is following the movement very slowly like a trail.
Did someone experience similar problems or has an idea how to fix this problem?
I have the same issue
seems to happen with larger lists in this component. I am now using atlaskit tree in my project, which can handle larger lists
I have the same issue
We too.
You can virtualize the tree (by passing height and itemHeight to the Tree component) and that helps you a litlle bit (animation example: https://tree-react-component.vercel.app/demo/animation ) => not visible html elements are not rendered
The main problem is that rc-tree makes render after every onDragLeave, onDragOver, onDragEnter, even if you dont define them (whenever you enable draggable)
I found the solution, disable the drag and drop completely and code drag and drop by yourself (you can add drag and drop to the title that you pass).
@Veragin Do you have working example ? can you please share with us.