mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +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;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user