mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-21 09:56:43 +02:00
fix incorrect lyric scroll position on resume
This commit is contained in:
@@ -268,6 +268,10 @@ export const SynchronizedKaraokeLyrics = ({
|
||||
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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user