mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +02:00
[bugfix]: restart synchronized lyrics on repeat one (or track queued multiple times)
This commit is contained in:
@@ -271,7 +271,12 @@ export const SynchronizedLyrics = ({
|
||||
|
||||
return;
|
||||
}
|
||||
if (!seeked) {
|
||||
|
||||
// If the time goes back to 0 and we are still playing, this suggests that
|
||||
// we may be playing the same track (repeat one). In this case, we also
|
||||
// need to restart playback
|
||||
const restarted = status === PlayerStatus.PLAYING && now === 0;
|
||||
if (!seeked && !restarted) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user