Skip to content

Commit 07a0171

Browse files
committed
fix(progress-bar): buffer background animation stuttering
Fixes the animation for the buffer progress bar stuttering, because it didn't align the the dot size.
1 parent 32a0010 commit 07a0171

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/progress-bar/progress-bar.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ $mat-progress-bar-secondary-indeterminate-scale-step-3:
285285
// Animation for buffer mode.
286286
@keyframes mat-progress-bar-background-scroll {
287287
to {
288-
transform: translateX(-10px);
288+
// Needs to be in multiples of the size of the buffer circles.
289+
transform: translateX(-$mat-progress-bar-height * 2);
289290
}
290291
}

0 commit comments

Comments
 (0)