Added back the buffer check vs. max value

This commit is contained in:
Luke Vo 2024-02-21 09:09:31 +07:00
parent 2512f55c1d
commit c7e26b5e93

View File

@ -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>