Skip to content

bug(mat-slider): Mobile touch on edge causes non-cancelable touch event error #23820

Closed
@cdestefano

Description

@cdestefano

Reproduction

StackBlitz
quick-demo-mat-slider

Steps to reproduce:

  1. View in mobile / responsive view
  2. Set initial slider position anywhere other than the end
  3. Click on the end of the slider

Expected Behavior

No console error is shown

Actual Behavior

A console error of

[Intervention] Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

It must be firing two click events at the same time, shouldn't it preventdefault on click?

Environment

  • Angular: 12.2.9
  • CDK/Material: 12.2.9
  • Browser(s): Chrome Version 95.0.4638.54
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows10

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions