Skip to content

CdkVirtualScrollViewport smooth scroll not working in Safari #17847

@waterplea

Description

@waterplea

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:

  1. 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

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/scrolling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions