Commit 3ce35f3
committed
fix: dragging past the bottom of the tree no longer slows down rendering
When dragging a node with a visible child to the last row displayed
for the tree, a render was triggered for each dragover event, causing
significant slowdown. The issue lied in the fact that the child was
being perceived as another node with which the dragged node should
swap with. The new implementation adds another condition - stopping the
rendering short if the previous render used the same drag position
(depth and minimum index).1 parent 9c3524f commit 3ce35f3
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
322 | 330 | | |
323 | 331 | | |
324 | 332 | | |
| |||
0 commit comments