Skip to content

bug(cdk-virtual-scroll-viewport): Does not work with ngZoneRunCoalescing #25808

Open
@andershessellund

Description

@andershessellund

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 does not work with ngZoneRunCoalescing enabled. Some frames are rendered with incorrect content, causing visual "glitches".

Reproduction

Steps to reproduce:

  1. Go to https://stackblitz.com/edit/cdk-virtual-scroll-bug-run-coalescing
  2. Scroll . The bug is most apparent when scrolling slowly.

Expected Behavior

All rendered frames has correct content during scrolling.

Actual Behavior

Some frames are rendered with incorrect content, causing glitches.

Environment

  • Angular: 14.2.6
  • CDK/Material: 14.2.5
  • Browser(s): Safari, Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): iOS, macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/scrolling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions