mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-22 02:16:39 +02:00
fix incorrect lyric scroll position on resume
This commit is contained in:
@@ -268,6 +268,10 @@ export const SynchronizedKaraokeLyrics = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Refresh the wall-clock playback anchor before restarting RAF.
|
||||||
|
// Otherwise resume interpolates from the pause-time eventCreationTime and
|
||||||
|
// briefly advances lyrics by the pause duration until the next progress tick.
|
||||||
|
syncFromCurrentTimestamp();
|
||||||
startRaf();
|
startRaf();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user