Skip to content

Commit 743451b

Browse files
fix(slider): ensure scrolling is prevented on mobile browsers
PiperOrigin-RevId: 526735126
1 parent 608e8ec commit 743451b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

slider/lib/_slider.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ $_md-sys-shape: tokens.md-sys-shape-values();
130130
block-size: var(--_state-layer-size);
131131
// note, only the native inputs are interactive.
132132
pointer-events: none;
133+
// ensure scrolling is prevented on mobile.
134+
touch-action: none;
133135
}
134136

135137
.track {

0 commit comments

Comments
 (0)