Skip to content

Commit

Permalink
fix(withHTMLSubitles): reverse subtitles delay direction
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Feb 2, 2024
1 parent b999315 commit 5f9ce0a
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 @@ -74,7 +74,7 @@ function withHTMLSubtitles(Video) {
}

subtitlesElement.style.bottom = offset + '%';
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 5f9ce0a

Please sign in to comment.