virtual icon indicating copy to clipboard operation
virtual copied to clipboard

miss item when set lanes to 4 and count is 36?

Open oloshe opened this issue 2 years ago • 1 comments

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

  1. modify file examples/react/src/main.tsx line 8:
const rows = new Array(36)
  1. run yarn start
  2. 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.

oloshe avatar Aug 14 '23 10:08 oloshe

It's ok when set overscan equal to 5

oloshe avatar Aug 14 '23 10:08 oloshe