jonasgeiler / svelte-tiny-virtual-list

A tiny but mighty list virtualization library for Svelte, with zero dependencies 💪 Supports variable heights/widths, sticky items, scrolling to index, and more!
https://svelte-tiny-virtual-list.jonasgeiler.com
MIT License
405 stars 23 forks source link

Using scrollOffset/scrollToIndex with InfiniteLoading #31

Open alanpq opened 6 months ago

alanpq commented 6 months ago

Not sure if this should be in the InfiniteLoading repo or this one, but I'm having trouble using scrollOffset/scrollToIndex with InfiniteLoading.

I tweaked the Hacker News example to use either scroll method on page load, so you can see the issue: https://svelte.dev/repl/ab9f2aca373149809e513f1417dc289c