bug(cdk-virtual-scroll-viewport): If there is not enough data without caching, the scrolling operation will be invalid. #29945
Labels
area: cdk/scrolling
needs investigation
A member of the team needs to do further investigation to determine the root cause
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
No response
Description
If there is not enough data without caching, the scrolling operation will be invalid.
Reproduction
StackBlitz link:https://stackblitz.com/edit/angular-sbfsdw?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fng-zorro-antd.module.ts,src%2Fapp%2Fapp.module.ts
Steps to reproduce:
The core code is as follows:
Expected Behavior
No matter the size of itemsize or the amount of data, the scrolling effect is normal.
Actual Behavior
Unable to scroll up and down
Environment
The text was updated successfully, but these errors were encountered: