mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
Added back the buffer check vs. max value
This commit is contained in:
parent
2512f55c1d
commit
c7e26b5e93
@ -42,7 +42,7 @@ export class LinearProgress extends Progress {
|
||||
// Only display dots when visible - this prevents invisible infinite
|
||||
// animation.
|
||||
const hideDots =
|
||||
this.indeterminate || !hasBuffer || this.value >= this.max;
|
||||
this.indeterminate || !hasBuffer || bufferValue >= this.max || this.value >= this.max;
|
||||
return html`
|
||||
<div class="dots" ?hidden=${hideDots}></div>
|
||||
<div class="inactive-track" style=${styleMap(dotStyles)}></div>
|
||||
|
Loading…
Reference in New Issue
Block a user