From 60545b030fdd692f567a402e562e2018b4c7209d Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 6 Dec 2023 14:44:04 +0800 Subject: [PATCH] fix: clicking on video cover does not navigate to video playback page --- src/components/VideoCard/VideoCard.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/VideoCard/VideoCard.vue b/src/components/VideoCard/VideoCard.vue index 548e570b..d0507e65 100644 --- a/src/components/VideoCard/VideoCard.vue +++ b/src/components/VideoCard/VideoCard.vue @@ -103,6 +103,7 @@ function toggleWatchLater() { function handleMouseEnter() { isHover.value = true + clearTimeout(mouseLeaveTimeOut.value) contentVisibility.value = 'visible' } @@ -199,6 +200,7 @@ function handelMouseLeave() { v-if="previewVideoUrl && isHover" autoplay muted :controls="settings.enableVideoCtrlBarOnVideoCard" + :style="{ pointerEvents: settings.enableVideoCtrlBarOnVideoCard ? 'auto' : 'none' }" pos="absolute top-0 left-0" w-full aspect-video rounded="$bew-radius" bg-black >