Skip to content

[cdk-virtual-scroll] sometimes jumps unexpectedly #14167

@bob-lee

Description

@bob-lee

Bug, feature request, or proposal:

Bug(?)

What is the expected behavior?

When showing a list of variable height items, viewport scrolls smoothly while scrolling up and down.

What is the current behavior?

Sometimes it jumps unexpectedly, so make it hard to view a certain item as a whole.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-7-virtual-scroll-jumping
Toggle between ngFor and virtualFor and try scrolling down, in virtualFor, it jumps a bit around the 3rd image.

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 7.0.1
Material: 7.0.4
OS: windows
Browsers: Chrome/FF/Brave

Is there anything else we should know?

Seems like it jumps when a set of rendered items change.

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