reverse the lyrics offset behavior to standard convention

This commit is contained in:
jeffvli
2025-11-30 17:47:19 -08:00
parent 72ef6da243
commit 615280e01b
4 changed files with 24 additions and 30 deletions
@@ -180,7 +180,7 @@ export const SynchronizedLyrics = ({
if (status === PlayerStatus.PLAYING) {
// Use the current timestamp from player events
setCurrentLyric(timestamp * 1000 - delayMsRef.current);
setCurrentLyric(timestamp * 1000 + delayMsRef.current);
return () => {
// Cleanup: clear the timer when lyrics change or component unmounts
@@ -208,7 +208,7 @@ export const SynchronizedLyrics = ({
delayMsRef.current = settings.delayMs;
// Use the current timestamp from player events
setCurrentLyric(timestamp * 1000 - delayMsRef.current);
setCurrentLyric(timestamp * 1000 + delayMsRef.current);
}, [setCurrentLyric, settings.delayMs, timestamp]);
useEffect(() => {
@@ -226,7 +226,7 @@ export const SynchronizedLyrics = ({
clearTimeout(lyricTimer.current);
}
setCurrentLyric(timestamp * 1000 - delayMsRef.current);
setCurrentLyric(timestamp * 1000 + delayMsRef.current);
}, [timestamp, setCurrentLyric, status]);
useEffect(() => {