From cb0c819bb43e39d6edd9590874ba25bb9e2500fc Mon Sep 17 00:00:00 2001 From: Wagner Maciel Date: Mon, 18 Mar 2024 14:28:48 -0400 Subject: [PATCH] fix(material/slider): disable touch actions * Fixes https://github.com/angular/components/issues/28130. --- src/material/slider/slider.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/material/slider/slider.scss b/src/material/slider/slider.scss index f72e358985ae..a712092e57ce 100644 --- a/src/material/slider/slider.scss +++ b/src/material/slider/slider.scss @@ -41,6 +41,8 @@ $mat-slider-horizontal-margin: 8px !default; right: $mat-slider-horizontal-margin; } + touch-action: none; + // Unset the default "width" property from the MDC slider class. We don't want // the slider to automatically expand horizontally for backwards compatibility. width: auto;