From 93a3bb9cba62630a77effe3cfb83ae26255340a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Sun, 21 Jul 2024 00:32:24 +0900 Subject: [PATCH] fix(media): click event prevent default --- packages/frontend/src/components/MkMediaBanner.vue | 2 ++ packages/frontend/src/components/MkMediaImage.vue | 2 ++ packages/frontend/src/components/MkMediaVideo.vue | 2 ++ 3 files changed, 6 insertions(+) diff --git a/packages/frontend/src/components/MkMediaBanner.vue b/packages/frontend/src/components/MkMediaBanner.vue index 0d5c1cbe0..fe8557817 100644 --- a/packages/frontend/src/components/MkMediaBanner.vue +++ b/packages/frontend/src/components/MkMediaBanner.vue @@ -42,6 +42,8 @@ const hide = ref(true); function showHiddenContent(ev: MouseEvent) { if (defaultStore.state.sensitiveDoubleClickRequired) { + ev.preventDefault(); + ev.stopPropagation(); return; } diff --git a/packages/frontend/src/components/MkMediaImage.vue b/packages/frontend/src/components/MkMediaImage.vue index 6cc9ab032..bea768abc 100644 --- a/packages/frontend/src/components/MkMediaImage.vue +++ b/packages/frontend/src/components/MkMediaImage.vue @@ -136,6 +136,8 @@ function showHiddenContent(ev: MouseEvent) { } if (defaultStore.state.sensitiveDoubleClickRequired) { + ev.preventDefault(); + ev.stopPropagation(); return; } diff --git a/packages/frontend/src/components/MkMediaVideo.vue b/packages/frontend/src/components/MkMediaVideo.vue index 5eba7b3a0..c33eb97f0 100644 --- a/packages/frontend/src/components/MkMediaVideo.vue +++ b/packages/frontend/src/components/MkMediaVideo.vue @@ -256,6 +256,8 @@ function showMenu(ev: MouseEvent) { function showHiddenContent(ev: MouseEvent) { if (defaultStore.state.sensitiveDoubleClickRequired) { + ev.preventDefault(); + ev.stopPropagation(); return; }