You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a known limitation in v7.1.0. When new items are prepended in inverse mode, the browser does not automatically compensate the scroll position, causing a jump. The component does not currently implement scroll anchoring for this case.
The browser's native overflow-anchor CSS property can help in some cases, but it is not reliable across all scroll containers. A proper fix would require measuring the scroll height before and after the prepend and adjusting scrollTop accordingly.
This is tracked as a future improvement. PRs welcome if you want to take a pass at it.
Hi! I'd like to contribute a fix for this issue. I'll first reproduce the scroll-position jump when items are prepended in inverse mode, then investigate a solution that preserves the user's viewport and add regression tests. Is this issue still available, and are there any implementation preferences I should follow?
Activity
iamdarshshah commentedon Apr 12, 2026
This is a known limitation in v7.1.0. When new items are prepended in inverse mode, the browser does not automatically compensate the scroll position, causing a jump. The component does not currently implement scroll anchoring for this case.
The browser's native
overflow-anchorCSS property can help in some cases, but it is not reliable across all scroll containers. A proper fix would require measuring the scroll height before and after the prepend and adjustingscrollTopaccordingly.This is tracked as a future improvement. PRs welcome if you want to take a pass at it.
dev-keshav commentedon Nov 2, 2026
Hi! I'd like to contribute a fix for this issue. I'll first reproduce the scroll-position jump when items are prepended in inverse mode, then investigate a solution that preserves the user's viewport and add regression tests. Is this issue still available, and are there any implementation preferences I should follow?