Commit a8a97fe
committed
Ensure layouts recomputed correctly in relation to other effects.
Without this, issues could occur where collisions were detected against
stale positions and items moved incorrectly as a result. In addition,
layouts might not have been recomputed correctly on drag end if
adjustments were made by custom `onDragEnd` handlers. Now,
core behaviour such as `recomputeLayouts` and `detectCollisions` is
called explicitly as part of `dragStart` and `dragEnd` to ensure correct
ordering.
For #551 parent bf19f7e commit a8a97fe
2 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| 640 | + | |
| 641 | + | |
640 | 642 | | |
641 | 643 | | |
642 | 644 | | |
643 | 645 | | |
| 646 | + | |
| 647 | + | |
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
| |||
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
| 658 | + | |
| 659 | + | |
654 | 660 | | |
655 | 661 | | |
656 | 662 | | |
| |||
715 | 721 | | |
716 | 722 | | |
717 | 723 | | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | 724 | | |
723 | | - | |
724 | 725 | | |
725 | 726 | | |
726 | 727 | | |
| |||
0 commit comments