From 315d041fc793696f3725ceb3232477dfdcb75f4f Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 1 Aug 2020 23:26:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=8C=E9=9D=A2=E6=AD=8C=E8=AF=8D=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E6=92=AD=E6=94=BE=E8=A1=8C=E6=94=B9=E4=B8=BA=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 4 ++++ src/renderer-lyric/components/core/Lyric.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 2de064b8..f07358ef 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,7 @@ ### 修复 - 修复使用全局快捷键还原窗口时,窗口没有获取焦点的问题 + +### 优化 + +- 桌面歌词当前播放行改为上下居中 diff --git a/src/renderer-lyric/components/core/Lyric.vue b/src/renderer-lyric/components/core/Lyric.vue index ce6a0f94..4949341a 100644 --- a/src/renderer-lyric/components/core/Lyric.vue +++ b/src/renderer-lyric/components/core/Lyric.vue @@ -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)) {