[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
for (let i = 0; i < deduplicatedLyrics.length; i++) {
const lineTime = musicControl.parseTime(deduplicatedLyrics[i].time)
if (time >= lineTime) {
nextLi = i
} else {
break
}
if (time >= lineTime) nextLi = i
else break
}
if (nextLi !== -1 && nextLi !== li) {
li = nextLi
}
if (nextLi !== -1 && nextLi !== li) li = nextLi
}, 100)
return () => {
@@ -82,7 +77,7 @@
<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">
{#if data.audioData.vocalsUrl}