Skip to content

cdk-virtual-scroll-viewport not working on iOS 15.3 and below Angular 14 #26623

Open
@ErwinThompsonF

Description

@ErwinThompsonF

What are you trying to do?

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.

What troubleshooting steps have you tried?

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.

I also tried downgrading my angular version to 13 and the cdk-virtual-scroll issue disappeared but I really need angular 14

Reproduction

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

Environment

  • Angular: 14
  • CDK/Material: 14.2.7
  • Browser(s): Safari,
  • Operating System (e.g. Windows, macOS, Ubuntu): 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/scrollingiosIssues specific to iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions