Skip to content

Commit

Permalink
ui seekbar: fix empty seek bar / glitching when seeking
Browse files Browse the repository at this point in the history
  • Loading branch information
Teun van Roovert committed Apr 20, 2020
1 parent c356903 commit 9ae6a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/seek_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ shaka.ui.SeekBar = class extends shaka.ui.RangeElement {
} else {
shaka.ui.Utils.setDisplay(this.container, true);

if (bufferedLength == 0) {
if (bufferedLength == 0 && !this.video.seeking) {
this.container.style.background = colors.base;
} else {
const clampedBufferStart = Math.max(bufferedStart, seekRange.start);
Expand Down

0 comments on commit 9ae6a64

Please sign in to comment.