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