mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-14 23:11:00 +08:00
🐞 fix: 修复歌词滚动问题
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
class="music-lrc"
|
||||
style="height: 60vh"
|
||||
:native-scrollbar="false"
|
||||
@mouseover="!isMobile ? mouseOverLayout : null"
|
||||
@mouseleave="!isMobile ? mouseLeaveLayout : null"
|
||||
@mouseover="mouseOverLayout"
|
||||
@mouseleave="mouseLeaveLayout"
|
||||
>
|
||||
<div ref="lrcContainer">
|
||||
<div
|
||||
@@ -116,9 +116,11 @@ const lrcScroll = (behavior = 'smooth') => {
|
||||
const debouncedLrcScroll = useDebounceFn(lrcScroll, 200);
|
||||
|
||||
const mouseOverLayout = () => {
|
||||
if(isMobile.value) {return}
|
||||
isMouse.value = true;
|
||||
};
|
||||
const mouseLeaveLayout = () => {
|
||||
if(isMobile.value) {return}
|
||||
setTimeout(() => {
|
||||
isMouse.value = false;
|
||||
lrcScroll();
|
||||
|
||||
Reference in New Issue
Block a user