diff --git a/frontend/src/components/files/LyricsList.vue b/frontend/src/components/files/LyricsList.vue index 13ac9240e..d71823f7e 100644 --- a/frontend/src/components/files/LyricsList.vue +++ b/frontend/src/components/files/LyricsList.vue @@ -16,7 +16,7 @@

best) { + const item = items.at(i); + if (item?.untimed) continue; + const timestamp = item?.timestamp ?? Number.POSITIVE_INFINITY; + if (timestamp <= currentMs && (timestamp > best || (preferLast && timestamp === best))) { best = timestamp; idx = i; } @@ -122,7 +124,7 @@ function syncLyrics() { activeWordIndex.value = -1; } const words = first >= 0 ? lyrics.at(first)?.words : null; - activeWordIndex.value = words?.length ? findActiveIndex(words, currentMs) : -1; + activeWordIndex.value = words?.length ? findActiveIndex(words, currentMs, true) : -1; } function scrollToActiveLine() { diff --git a/frontend/src/components/files/PopupPreview.vue b/frontend/src/components/files/PopupPreview.vue index a4385dc60..4ee6d1b71 100644 --- a/frontend/src/components/files/PopupPreview.vue +++ b/frontend/src/components/files/PopupPreview.vue @@ -1,4 +1,5 @@