Skip to content

cdk-virtual-scroll-viewport, blank area at the top and bottom of the scrolling areas when user is scrolling quickly #19313

Open
@Adam-Michalski

Description

@Adam-Michalski

It tooks a lot of time to rerender items when scrolling fast enought to reach end of buffer, it freezes for about 1-3 before items are displayed.

 <cdk-virtual-scroll-viewport
    #viewport
    [itemSize]="40"
    [minBufferPx]="itemBufferCount * 40"
    [maxBufferPx]="itemBufferCount * 40"
  >
    <ul>
      <li style="height: 40px">

Scrolling down
down
Scrolling up
up

In performance this takes a lot of time

animation

Thera are oslo many warnings while scrolling
animation violation

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/scrollingperfThis issue is related to performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions