Skip to content

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

@oloshe

Description

@oloshe

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

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions