Skip to content

Conversation

@skryukov
Copy link
Contributor

This PR fixes InfiniteScroll scroll position preservation for cases when the first child element is invisible.

Before these changes, captureScrollPosition always called getElementsInViewportFromCollection with the first child element. When this element was invisible, getElementsInViewportFromCollection always returned an empty collection.

@pascalbaljet pascalbaljet merged commit edce6af into inertiajs:master Nov 11, 2025
9 checks passed
@pascalbaljet
Copy link
Member

Thanks!

@skryukov skryukov deleted the fix-infinitescroll-scroll-preservation branch November 11, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants