修复首句歌词被提前播放的问题

This commit is contained in:
lyswhut
2023-08-11 13:28:29 +08:00
parent e1646a3127
commit c2789312ba
5 changed files with 23 additions and 9 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export const init = () => {
rate: setting['player.playbackRate'],
isVertical: setting['desktopLyric.direction'] == 'vertical',
onPlay(line, text) {
setText(text, line)
setText(text, Math.max(line, 0))
// console.log(line, text)
},
onSetLyric(lines, offset) { // listening lyrics seting event