[F] Disable hide repeated for karaoke mode

This commit is contained in:
2025-11-22 22:08:46 +08:00
parent 9e180ada4c
commit 42786d98d7
+4 -9
View File
@@ -61,16 +61,11 @@
let nextLi = -1 let nextLi = -1
for (let i = 0; i < deduplicatedLyrics.length; i++) { for (let i = 0; i < deduplicatedLyrics.length; i++) {
const lineTime = musicControl.parseTime(deduplicatedLyrics[i].time) const lineTime = musicControl.parseTime(deduplicatedLyrics[i].time)
if (time >= lineTime) { if (time >= lineTime) nextLi = i
nextLi = i else break
} else {
break
}
} }
if (nextLi !== -1 && nextLi !== li) { if (nextLi !== -1 && nextLi !== li) li = nextLi
li = nextLi
}
}, 100) }, 100)
return () => { return () => {
@@ -82,7 +77,7 @@
<svelte:window onclick={() => musicControl?.ready()} onkeydown={() => musicControl?.ready()}/> <svelte:window onclick={() => musicControl?.ready()} onkeydown={() => musicControl?.ready()}/>
<PlayerAppBar song={data.song} bind:settings showRomajiOnError={false} isKaraoke={true} /> <PlayerAppBar song={data.song} bind:settings showRomajiOnError={false} isKaraoke={true} disableHideRepeated />
<div class="vbox p-content py-4 gap-2 mfg-on-surface-variant"> <div class="vbox p-content py-4 gap-2 mfg-on-surface-variant">
{#if data.audioData.vocalsUrl} {#if data.audioData.vocalsUrl}