Description
After upgrading my Angular application from version 13 to 14, I have noticed that the cdk-virtual-scroll-viewport component no longer works on iOS devices running version 15.3 or earlier. The virtual scrolling feature is not functioning correctly, and the scrolledIndexChange event is not updating as expected. Additionally, the scrollToIndex function is not working on iOS 15.3 or earlier when using Angular 14, although it worked when using Angular 13.
Steps to reproduce
To reproduce the issue:
Create an Angular application with version 14. Implement the cdk-virtual-scroll-viewport component in the application. Test the application on an iOS device running version 15.3 or earlier. Observe that the virtual scrolling functionality is not working correctly, and the scrolledIndexChange event is not updating as expected. Expected behavior
The cdk-virtual-scroll-viewport component should allow for virtual scrolling on all devices, including iOS devices running version 15.3 or earlier. The scrolledIndexChange event should update correctly as the user scrolls, and the scrollToIndex function should work as expected.
Actual behavior
On iOS devices running version 15.3 or earlier, the virtual scrolling feature is not functioning correctly in the Angular 14 application. The scrolledIndexChange event is not updating, and the scrollToIndex function is not working.
Relevant code
Here is a code sample that I am currently using, which has not been modified since upgrading from Angular 13 to 14:
<cdk-virtual-scroll-viewport #viewPort class="vscroll" *ngIf="categories"
(scrolledIndexChange)="scrolled($event)" customVirtualScrollStrategy [itemHeights]='rowHeights'
[headerHeight]="recommendationHeight">
<section [ngStyle]="{'height.px': rowHeights[i]}"
*cdkVirtualFor="let cat of categories; templateCacheSize: 3; let i = index">
<h1>{{cat.name}}</h1>
</section>
</cdk-virtual-scroll-viewport>
Additional information
I have already attempted to update the @angular/cdk package to the latest version, but the issue persists. I have also checked the documentation and issue tracker for the cdk-virtual-scroll component, but could not find any known issues or workarounds specifically related to iOS 15.3 or earlier. Any assistance with resolving this issue would be greatly appreciated.
Thank you in advance!