Repository navigation
Commit df83a48
committed
fix(virtual-core): apply the whole shrink while a clamped end write is pending
If an end-pinned item grew before the sizer did, its compensation write is
clamped and waits to be retried once the sizer grows. A scroll element shrink
in that window was capped at the DOM distance to the end, which is stale
until the sizer commits, so the shrink was dropped and the retry landed short
of the new end. Apply the whole shrink while a clamped write is pending; the
retry lands it.1 parent aaaa7bf commit df83a48
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
906 | 909 | | |
907 | | - | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
908 | 913 | | |
909 | 914 | | |
910 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3318 | 3318 | | |
3319 | 3319 | | |
3320 | 3320 | | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
3321 | 3337 | | |
3322 | 3338 | | |
3323 | 3339 | | |
| |||
0 commit comments