Skip to content

Commit 4adee46

Browse files
authored
fix(slider): prevent thumb from getting stuck on Mobile Safari (#2142)
* . * fix(slider): prevent thumb from getting stuck on Mobile Safari * fix units
1 parent e85d108 commit 4adee46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/slider/slider.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ md-slider {
9494
.md-slider-sliding {
9595
.md-slider-track-fill,
9696
.md-slider-thumb-container {
97-
transition: none;
97+
// Must use `transition-duration: 0ms` to disable animation rather than `transition: none`.
98+
// On Mobile Safari `transition: none` causes the slider thumb to appear stuck.
99+
transition-duration: 0ms;
98100
}
99101
}
100102

0 commit comments

Comments
 (0)