Skip to content

Commit

Permalink
fix(big-play-button): component remains displayed when seeking (video…
Browse files Browse the repository at this point in the history
…js#8484)

This issue happen when the `player` has the class `vjs-show-big-play-button-on-pause` and a `seek` occurs,
resulting in the `loadingSpinner` being hidden behind the `bigPlayButton`.

- Avoids displaying `bigPlayButton` while `seeking`
  • Loading branch information
amtins authored Nov 28, 2023
1 parent 7831046 commit 92b5e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css/components/_big-play.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
}

// Show big play button if video is paused and .vjs-show-big-play-button-on-pause is set on video element
.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button {
.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause:not(.vjs-seeking, .vjs-scrubbing) .vjs-big-play-button {
display: block;
}

0 comments on commit 92b5e79

Please sign in to comment.