virtual
virtual copied to clipboard
miss item when set lanes to 4 and count is 36?
Describe the bug
when lanes and count are set to some specific numbers, it may miss some items when displayed. such as lanes = 4, count = 36 or lanes = 6, count = 36.
Your minimal, reproducible example
https://codesandbox.io/s/hopeful-mcclintock-87sct9?file=/src/App.js:132-134
Steps to reproduce
- modify file
examples/react/src/main.tsxline 8:
const rows = new Array(36)
- run
yarn start - see the example
variable/Masonry (vertical)
Expected behavior
show all items
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
Windows 11
tanstack-virtual version
3.0.0-beta.54
TypeScript version
5.1.6
Additional context
No response
Terms & Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
It's ok when set overscan equal to 5