Skip to content

The blank area when user is scrolling quickly in cdk-virtual-scroll #24943

@Rajalekshmirl07

Description

@Rajalekshmirl07

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

cdk-virtual-scroll-viewport, is showing white blank space when scroll quickly. If we use minBufferPx and maxBufferPx to reduce the blank space, it was badly affecting the scroll smoothness and CPU performance

Reproduction

Steps to reproduce:

  1. create a table with icons, images and heavy CSS in each row using cdk-virtual-scroll
  2. scroll the mouse wheel fastly back and forth to see the blank space

Expected Behavior

It should behave like we are in the table, it should not show the blank space

Actual Behavior

It is showing blank space on quick scroll

Environment

  • Angular: 13
  • CDK/Material:
  • Browser(s): chrome, mozilla firefox, edge
  • Operating System (e.g. Windows, macOS, Ubuntu): windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: cdk/scrollingneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions