From 5f9ce0a549a342bfbc96364e45bffbd8a4c025e1 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 2 Feb 2024 12:46:07 +0100 Subject: [PATCH] fix(withHTMLSubitles): reverse subtitles delay direction --- src/withHTMLSubtitles/withHTMLSubtitles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/withHTMLSubtitles/withHTMLSubtitles.js b/src/withHTMLSubtitles/withHTMLSubtitles.js index ab2093d..eb510e8 100644 --- a/src/withHTMLSubtitles/withHTMLSubtitles.js +++ b/src/withHTMLSubtitles/withHTMLSubtitles.js @@ -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';