Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for prepending items to list and keeping scroll #123

Open
JakeSchroeder opened this issue Jan 26, 2021 · 2 comments
Open

Support for prepending items to list and keeping scroll #123

JakeSchroeder opened this issue Jan 26, 2021 · 2 comments

Comments

@JakeSchroeder
Copy link

I am building a chat application where the user starts at the bottom of a list of messages and scrolls upward, infinitely loading items which in turn prepends them to the list.

Would this package support starting at the bottom and allowing a user to infinitely scroll upwards while maintaining their scroll position?

Similarly to Slack or Microsoft Teams?

Thanks for this awesome lib

@perrin4869
Copy link
Collaborator

Hey!

If I understand correctly, the option you are looking for is initialScroll. I think this lib should be able to help with your usecase, but feel free to send me a PR if you find any shortcomings :)

@ptahchiev
Copy link

ptahchiev commented Feb 2, 2024

I have exactly the same usecase. An example where the customer scrolls up to the top, then new messages are added, while the scrollbar position is maintained exactly where the customer was left, would be really appreciated.

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

No branches or pull requests

3 participants