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

Feature request: Initial "start" value (auto-scroll to certain element) #28

Open
Kreozot opened this issue Sep 11, 2019 · 1 comment · May be fixed by #52
Open

Feature request: Initial "start" value (auto-scroll to certain element) #28

Kreozot opened this issue Sep 11, 2019 · 1 comment · May be fixed by #52

Comments

@Kreozot
Copy link

Kreozot commented Sep 11, 2019

I really need to auto-scroll the list to remembered position. But the algorythm is kinda complicated. So I failed to do it myself so far. Maybe somebody can give me a hint how to achieve this behaviour. Or even make it if it is not so complicated.

I did almost all needed changes (as I think :)), but part after "prevent jumping if we scrolled up into unknown territory" is ruin everything, since I don't know previous row heights.

Thank you!

Diff by my code so far: https://github.com/sveltejs/svelte-virtual-list/compare/master...Kreozot:initial-position?expand=1

@Kreozot
Copy link
Author

Kreozot commented Sep 11, 2019

Also I think, I made some mistake. Because scroll is jumping even if I scroll down after initial render.

@gitbreaker222 gitbreaker222 linked a pull request Jan 23, 2021 that will close this issue
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 a pull request may close this issue.

1 participant