Open
Description
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
I'm getting an annoying behaviour while scrolling, where items snap/jump back and I'm never able to scroll all the way down the end of the list. I've notice though, that this bug happens only when I use the virtual scrolling within a material dialog
Template
<cdk-virtual-scroll-viewport class="scroll-viewport" itemSize="20">
<li class="scan-list__item" cdkVirtualFor="let scan of pointClouds| keyvalue:classesByNameAsc;templateCacheSize:0">
<div class="scan-list__scan">
<div class="scan-list__scan__left">
<div>{{scan.value.name}}</div>
</div>
</div>
</li>
</cdk-virtual-scroll-viewport\>
CSS
.scroll-viewport { height: 200px; }
Reproduction
- Implement cdk-virtual-scroll-viewport scroller inside a Angular Material dialog
- in the template set templateCacheSize:0
- try to scroll down
Expected Behavior
Screen.Recording.2023-05-16.at.17.28.24.mov
Actual Behavior
While scrolling down, the scroll jump up to the first times
Environment
- Angular: ~11.2.14
- CDK/Material: ~11.2.13
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOs Catalina