Skip to content

Commit

Permalink
fix(material/slider): disable touch actions
Browse files Browse the repository at this point in the history
* Fixes angular#28130.
  • Loading branch information
wagnermaciel committed Mar 18, 2024
1 parent 54a3504 commit cb0c819
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/material/slider/slider.scss
Expand Up @@ -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;
Expand Down

0 comments on commit cb0c819

Please sign in to comment.