useWindowVirtualizer for infinite image scrolling
I've been struggling to get a somewhat basic image scroller working and was hoping someone could help point out what I might be doing wrong. Basically, I create a virtualizer based on the number of pages in an archive file (which consists of a bunch of images), and then iterate through the virtual items and render the image based on the index. It sounds fairly straightforward, but currently I can't get the full page count to render, and I also feel like I am rendering too much at once, at the same time. If i set the estimateSize to return 1, then it will display all images at once. If I return an arbitrary size, like 30, it displays about 20 at once but then no more. If I set it to the size of an image, then it only displays 1 total.
I'll paste the code below, but here is a short video for what this code does: https://streamable.com/kzofvq
I'll paste the code below, but here is a short video for what this code does: https://streamable.com/kzofvq
