fix(media): click event prevent default

This commit is contained in:
オスカー、 2024-07-21 00:32:24 +09:00
parent 2cfb82bd0e
commit 4d34c0e0ca
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7
3 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,8 @@ const hide = ref(true);
function showHiddenContent(ev: MouseEvent) {
if (defaultStore.state.sensitiveDoubleClickRequired) {
ev.preventDefault();
ev.stopPropagation();
return;
}

View File

@ -136,6 +136,8 @@ function showHiddenContent(ev: MouseEvent) {
}
if (defaultStore.state.sensitiveDoubleClickRequired) {
ev.preventDefault();
ev.stopPropagation();
return;
}

View File

@ -256,6 +256,8 @@ function showMenu(ev: MouseEvent) {
function showHiddenContent(ev: MouseEvent) {
if (defaultStore.state.sensitiveDoubleClickRequired) {
ev.preventDefault();
ev.stopPropagation();
return;
}