修复某些情况下歌词的滚动问题

This commit is contained in:
lyswhut
2023-01-06 14:22:17 +08:00
parent be350e49f0
commit b40e57f191
4 changed files with 4 additions and 0 deletions
@@ -197,6 +197,7 @@ export default ({ isPlay, lyric, playProgress, isShowLyricProgressSetting, offse
const scrollLine = (line, oldLine) => {
if (line < 0) return
if (line == 0 && isSetedLines) return isSetedLines = false
if (isSetedLines) isSetedLines = false
if (oldLine == null || line - oldLine != 1) return handleScrollLrc()
delayScrollTimeout = setTimeout(() => {