修复某些情况下歌词的滚动问题
parent
be350e49f0
commit
b40e57f191
|
@ -4,6 +4,7 @@
|
||||||
- 修复初始设置的桌面歌词窗口没有完全居右下角的问题
|
- 修复初始设置的桌面歌词窗口没有完全居右下角的问题
|
||||||
- 修复Linux arm64系统下无法启动的问题(#1102)
|
- 修复Linux arm64系统下无法启动的问题(#1102)
|
||||||
- 修复桌面歌词使用斜体出现截断的问题(#1106)
|
- 修复桌面歌词使用斜体出现截断的问题(#1106)
|
||||||
|
- 修复某些情况下歌词的滚动问题
|
||||||
|
|
||||||
### 优化
|
### 优化
|
||||||
|
|
||||||
|
|
|
@ -164,6 +164,7 @@ export default () => {
|
||||||
const scrollLine = (line, oldLine) => {
|
const scrollLine = (line, oldLine) => {
|
||||||
if (line < 0 || !lyric.lines.length) return
|
if (line < 0 || !lyric.lines.length) return
|
||||||
if (line == 0 && isSetedLines) return isSetedLines = false
|
if (line == 0 && isSetedLines) return isSetedLines = false
|
||||||
|
if (isSetedLines) isSetedLines = false
|
||||||
if (oldLine == null || line - oldLine != 1) return handleScrollLrc()
|
if (oldLine == null || line - oldLine != 1) return handleScrollLrc()
|
||||||
|
|
||||||
if (setting['desktopLyric.isDelayScroll']) {
|
if (setting['desktopLyric.isDelayScroll']) {
|
||||||
|
|
|
@ -164,6 +164,7 @@ export default () => {
|
||||||
const scrollLine = (line, oldLine) => {
|
const scrollLine = (line, oldLine) => {
|
||||||
if (line < 0) return
|
if (line < 0) return
|
||||||
if (line == 0 && isSetedLines) return isSetedLines = false
|
if (line == 0 && isSetedLines) return isSetedLines = false
|
||||||
|
if (isSetedLines) isSetedLines = false
|
||||||
if (oldLine == null || line - oldLine != 1) return handleScrollLrc()
|
if (oldLine == null || line - oldLine != 1) return handleScrollLrc()
|
||||||
|
|
||||||
if (setting['desktopLyric.isDelayScroll']) {
|
if (setting['desktopLyric.isDelayScroll']) {
|
||||||
|
|
|
@ -197,6 +197,7 @@ export default ({ isPlay, lyric, playProgress, isShowLyricProgressSetting, offse
|
||||||
const scrollLine = (line, oldLine) => {
|
const scrollLine = (line, oldLine) => {
|
||||||
if (line < 0) return
|
if (line < 0) return
|
||||||
if (line == 0 && isSetedLines) return isSetedLines = false
|
if (line == 0 && isSetedLines) return isSetedLines = false
|
||||||
|
if (isSetedLines) isSetedLines = false
|
||||||
if (oldLine == null || line - oldLine != 1) return handleScrollLrc()
|
if (oldLine == null || line - oldLine != 1) return handleScrollLrc()
|
||||||
|
|
||||||
delayScrollTimeout = setTimeout(() => {
|
delayScrollTimeout = setTimeout(() => {
|
||||||
|
|
Loading…
Reference in New Issue