1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-11 13:18:11 +09:00

fix(media): click event prevent default

This commit is contained in:
オスカー、 2024-07-21 00:32:24 +09:00
parent ffbe9e856d
commit 93a3bb9cba
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;
}