8000 [labs/virtualizer] Improve scroll performance - high scroll velocity causes UI lag · Issue #5006 · lit/lit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[labs/virtualizer] Improve scroll performance - high scroll velocity causes UI lag #5006
Open
@Bovonenko

Description

@Bovonenko

Should this be an RFC?

  • This is not a substantial change

Which package is this a feature request for?

Virtualizer (@lit-labs/virtualizer)

Description

We're currently migrating a data table component from iron-list to lit-virtualizer, and we've run into some performance issues.

With iron-list, rendering appears to be debounced or throttled—when we scroll quickly, it doesn't immediately render the items, but catches up after a short delay. This behavior avoids blocking the UI and keeps the scrolling smooth.

However, with lit-virtualizer, it seems to try to render every

item immediately, even while scrolling fast. This results in noticeable input lag and UI freeze during faster scroll on large datasets.

lit-playground (2).zip
playground example

Alternatives and Workarounds

We haven’t found a workaround for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0