diff --git a/publish/changeLog.md b/publish/changeLog.md index 58b5babb..1e38cb17 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -2,3 +2,4 @@ - 修复mg排行榜无法加载的问题 - 修复点击播放详情页的进度条跳进度时会出现偏移的问题 +- 修复在有提示信息的地方长按鼠标按键时提示信息会闪烁的问题 diff --git a/src/renderer/plugins/Tips/index.js b/src/renderer/plugins/Tips/index.js index 203f5794..0584eb97 100644 --- a/src/renderer/plugins/Tips/index.js +++ b/src/renderer/plugins/Tips/index.js @@ -3,6 +3,8 @@ import { debounce } from '../../utils' let instance let prevTips +let prevX = 0 +let prevY = 0 const getTips = el => el @@ -53,6 +55,9 @@ const updateTips = event => { } document.body.addEventListener('mousemove', event => { + if (event.x == prevX && event.y == prevY) return + prevX = event.x + prevY = event.y hideTips() showTips(event) })