桌面歌词当前播放行改为上下居中

pull/389/head
lyswhut 2020-08-01 23:26:35 +08:00
parent f7f1cdab34
commit 315d041fc7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
### 修复
- 修复使用全局快捷键还原窗口时,窗口没有获取焦点的问题
### 优化
- 桌面歌词当前播放行改为上下居中

View File

@ -191,7 +191,7 @@ export default {
}
if (this.lyricEvent.isStopScroll) return
let dom_p = this.dom_lines[this.lyric.line]
cancelScrollFn = scrollTo(this.$refs.dom_lyric, dom_p ? (dom_p.offsetTop - this.$refs.dom_lyric.clientHeight * 0.38) : 0)
cancelScrollFn = scrollTo(this.$refs.dom_lyric, dom_p ? (dom_p.offsetTop - this.$refs.dom_lyric.clientHeight * 0.5 + dom_p.clientHeight / 2) : 0)
},
handleLyricMouseDown(e) {
if (e.target.classList.contains(this.$style.lrcLine)) {