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:
parent
ffbe9e856d
commit
93a3bb9cba
@ -42,6 +42,8 @@ const hide = ref(true);
|
||||
|
||||
function showHiddenContent(ev: MouseEvent) {
|
||||
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -136,6 +136,8 @@ function showHiddenContent(ev: MouseEvent) {
|
||||
}
|
||||
|
||||
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -256,6 +256,8 @@ function showMenu(ev: MouseEvent) {
|
||||
|
||||
function showHiddenContent(ev: MouseEvent) {
|
||||
if (defaultStore.state.sensitiveDoubleClickRequired) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user