A tiny but mighty 3kb list virtualization library, with zero dependencies 💪 Supports variable heights/widths, sticky items, scrolling to index, and more!
Hello, I was trying out this library v2.2.0, with the stickyIndices feature.
When I tried stickyIndices=[0, 5, 10] everything works nicely.
But when I tried an array that does not start with '0', for example stickyIndices=[1], I get results that look like below:
Hello, I was trying out this library v2.2.0, with the
stickyIndices
feature.When I tried
stickyIndices=[0, 5, 10]
everything works nicely. But when I tried an array that does not start with '0', for examplestickyIndices=[1]
, I get results that look like below:Here's a codesandbox for repro: https://codesandbox.io/s/react-tiny-virtual-list-sticky-issue-4hgjo
BTW just want to say thanks for creating this library. The code is very nice to read and helped me a lot in understanding virtualization 👍