Weird order of virtual items for many lanes when items has the same size
karolzeluk opened this issue · 0 comments
karolzeluk commented
Describe the bug
In case of many lanes defined and items having the same size, items might be ordered in weird way as they are sorted only by size.
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/epic-bhaskara-fddtl2
Steps to reproduce
Check how items are sorted in 2nd and 4th rows. They are sorted from left to right.
Expected behavior
In all rows in case of the same size, items should be sorted from left to right.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
- OS: macOS
- browser: Chrome
- version:
tanstack-virtual version
3.0.0-beta.54
TypeScript version
v5.3.3
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- 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.