TanStack
OSS
virtual
Sign in / Sign up
Open main menu
virtual
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
main
37be2842 fix(virtual-core): sync `scrollOffset` in `applyScrollAdjustment` so end-anchored resize is not lost to browser clamp (#1209) With `anchorTo: 'end'` and a dynamically growing last item, `resizeItem` calls `applyScrollAdjustment` before `notify()`, so the `scrollTop` write lands while the sizer is still at the old `getTotalSize()`. The browser clamps the write, no scroll event fires, and `scrollOffset` stays stale. The next tick's `getVirtualDistanceFromEnd()` then exceeds `scrollEndThreshold`, `wasAtEnd` flips false, and the viewport drifts away from the end from the second resize onward. Carry the intended target in `scrollOffset` (and zero `scrollAdjustments` to keep their sum invariant) the same way the prepend path in `setOptions` does (#1176), so the next `wasAtEnd` check sees the post-adjustment position regardless of whether the DOM write was clamped.
by Marius Schulz
M
Succeeded
fix/resize-adjust-scrolloffset-sync
431501f8 Merge 75a5a2b14b9802608e6b125f4ca1c6dc2bcb0c74 into 75ae8964a695137ea3dea1ff592ea9502d3d67de
by Marius Schulz
M
Previous page
Previous
Next
Next page