mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-12 21:58:12 +09:00
fix(media): click event prevent default
This commit is contained in:
parent
ffbe9e856d
commit
93a3bb9cba
@ -42,6 +42,8 @@ const hide = ref(true);
|
|||||||
|
|
||||||
function showHiddenContent(ev: MouseEvent) {
|
function showHiddenContent(ev: MouseEvent) {
|
||||||
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
||||||
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,6 +136,8 @@ function showHiddenContent(ev: MouseEvent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
||||||
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,6 +256,8 @@ function showMenu(ev: MouseEvent) {
|
|||||||
|
|
||||||
function showHiddenContent(ev: MouseEvent) {
|
function showHiddenContent(ev: MouseEvent) {
|
||||||
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
||||||
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user