Skip to content

bug(mat-slider): mobile device scrolling can break slider internal state #28130

Open

Description

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Scrolling on a mobile device can break the mat-slider's internal state such that the slider still thinks it is in an active dragging state when it is not

The root cause of the issue is that for some reason, the pointerup event never gets triggered when the user stops scrolling

Reproduction

  • Visit any webpage that has a mat-slider
  • Scroll down with the pointerdown originating from the mat-slider
  • Stop scrolling

Expected Behavior

The mat-slider is in an inactive state

Actual Behavior

The mat-slider is still in the active state

Environment

  • Angular: 17
  • CDK/Material: 17
  • Browser(s): chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): ios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentandroidIssues specific to Androidarea: material/slideriosIssues specific to iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions