Commit 0add889
committed
fix(search): center virtualized matches after mount in find nav (SD-3315)
scrollToPositionAsync forwarded ifNeeded:true into its post-mount retry. A match
that was off-screen at call time (hence the async/mount path) could end up
edge-visible after the page scrolls into view, then downgrade to 'nearest' and
skip the centering it should get. Force ifNeeded:false on the retry (keeping
suppressSelectionSyncScroll); the fast path keeps ifNeeded for already-mounted
matches. Flagged in review by Codex and cubic.1 parent a7ccb7b commit 0add889
2 files changed
Lines changed: 54 additions & 3 deletions
File tree
- packages/super-editor/src/editors/v1/core/presentation-editor
- tests
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3884 | 3884 | | |
3885 | 3885 | | |
3886 | 3886 | | |
3887 | | - | |
3888 | | - | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
3889 | 3893 | | |
3890 | 3894 | | |
3891 | 3895 | | |
| |||
3989 | 3993 | | |
3990 | 3994 | | |
3991 | 3995 | | |
3992 | | - | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
3993 | 3999 | | |
3994 | 4000 | | |
3995 | 4001 | | |
| |||
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
652 | 697 | | |
653 | 698 | | |
654 | 699 | | |
| |||
0 commit comments