Open
Description
This is a summary of issues around similar use-cases:
- Updating items only updates on scroll #15 lazy loading: [bug, resolved?] adding more items keeps scroll position and increases scroll length below
- Feature request: Initial "start" value (auto-scroll to certain element) #28 scroll to song: bring an item (by index) into view
- Viewport goes empty if scrolled down and items array changes. #30 filtering list: [bug] removing more items than current scroll position assumes causes "empty" viewport
- autoscroll (to the bottom) feature #32 messenger: autoscroll to bottom if new items loades
I hope the use-case-namings are helpful - all these issues have in common, that we expect certain behaviours from the scroll position. To prevent solving one issue while re-creating another, I suggest to work towards one PR that solves them together 🚄 🤝
REPL: https://svelte.dev/repl/1c36db7c1e7e4ef2bfb04874321412e5?version=3.20.1
comparable vanilla implementations:
Metadata
Metadata
Assignees
Labels
No labels