Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual Scrolling Widget #882

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Virtual Scrolling Widget #882

wants to merge 6 commits into from

Conversation

DJMcNab
Copy link
Member

@DJMcNab DJMcNab commented Mar 7, 2025

This is a minimum viable virtual scrolling widget, making the following assumptions:

  • It does not care about scrollbars. This has several big advantages:
    • It allows for "infinite" virtual up and down-scrolling
    • It allows for much more control by users of how the scrolling happens (e.g. a date based scrollbar)

It currently does not work.

I don't think it's possible in current Masonry to correctly handle arbitrary transforms of child widgets in a virtual scrolling list. I believe that this is intentional, as compose can theoretically move a transformed item arbitrarily far (as it could have an arbitrarily large scale factor). Therefore, this widget will ignore the possibility, and assume that all widgets draw within their layout rect.

Fixes #51 (or at least, it will do)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

virtual/sparse scrolling / models
1 participant