Skip to content

Commit

Permalink
Merge branch 'master' into feat/subtitles-opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde authored Feb 2, 2024
2 parents b0c9942 + 55c83fa commit cb56794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/withHTMLSubtitles/withHTMLSubtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function withHTMLSubtitles(Video) {

subtitlesElement.style.bottom = offset + '%';
subtitlesElement.style.opacity = opacity;
subtitlesRenderer.render(cuesByTime, videoState.time + delay).forEach(function(cueNode) {
subtitlesRenderer.render(cuesByTime, videoState.time - delay).forEach(function(cueNode) {
cueNode.style.display = 'inline-block';
cueNode.style.padding = '0.2em';
cueNode.style.whiteSpace = 'pre-wrap';
Expand Down

0 comments on commit cb56794

Please sign in to comment.