-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/scrolling
Description
Reproduction
Here's a fork of virtual scroll demo with a button to reproduce the issue:
https://stackblitz.com/edit/angular-virtual-scroll-smooth-ios
Steps to reproduce:
- Call scrollToOffset/scrollToIndex with
'smooth'
behavior on Safari
Expected Behavior
Viewport scrolls smoothly
Actual Behavior
Viewport scrolls immediately in Safari and smoothly in good browsers
Environment
- Angular: 8.2.3
- CDK/Material: 8.2.3
- Browser(s): Safari
- Operating System (e.g. Windows, macOS, Ubuntu): MacOS/iOS
Other details
This is probably because it uses native scrollIntoView with behavior and it is not supported in Safari. If Angular team will not include the fallback with its CDK, it is probably good to mention this limitation on the Scrolling demo page of the CDK.
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/scrolling