virtua icon indicating copy to clipboard operation
virtua copied to clipboard

Support Scroll Snap

Open inokawa opened this issue 1 year ago • 5 comments

I'm not sure it's possible though.

inokawa avatar May 20 '24 13:05 inokawa

I have an issue where it scroll back to the top only on safari (and it seems because of intertia scrolling). I guess this issue is relevant for me. Is there any hope to have it working? <VList data={posts} class="page scroll-smooth overflow-y-auto h-dvh snap-always" style="scroll-snap-type: y mandatory;" getKey={(_, i) => i}> {#snippet children(item, index)} <Post post={item}/> {/snippet} </VList >

neckaros avatar Feb 18 '25 13:02 neckaros

This works smoothly in Chromium browsers, but Safari has an issue. With a list containing slides that are 100% of the viewport width and height, Safari scrolls back to the first item when the virtualized list repopulates items.

verwer avatar Apr 22 '25 13:04 verwer

anyone have any solution for this.hmm it seem to scroll restoration not work with this scroll snap when i navigate and back it always cache in index 12 :))

hi02102002 avatar Jul 08 '25 02:07 hi02102002

Any news on it ? Would be really helpful

plcdnl avatar Aug 16 '25 19:08 plcdnl

https://github.com/bvaughn/react-window/issues/290

inokawa avatar Oct 02 '25 10:10 inokawa