桌面歌词当前播放行改为上下居中
parent
f7f1cdab34
commit
315d041fc7
|
@ -1,3 +1,7 @@
|
|||
### 修复
|
||||
|
||||
- 修复使用全局快捷键还原窗口时,窗口没有获取焦点的问题
|
||||
|
||||
### 优化
|
||||
|
||||
- 桌面歌词当前播放行改为上下居中
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue