Skip to content

Commit

Permalink
fix(slider): ensure scrolling is prevented on mobile browsers
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 526735126
  • Loading branch information
material-web-copybara authored and copybara-github committed Apr 24, 2023
1 parent 608e8ec commit 743451b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slider/lib/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ $_md-sys-shape: tokens.md-sys-shape-values();
block-size: var(--_state-layer-size);
// note, only the native inputs are interactive.
pointer-events: none;
// ensure scrolling is prevented on mobile.
touch-action: none;
}

.track {
Expand Down

0 comments on commit 743451b

Please sign in to comment.