fix(media): image interaction is not working

This commit is contained in:
オスカー、 2024-08-13 20:46:42 +09:00
parent 00db4e1c07
commit ade6578486
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ const audioEl = shallowRef<HTMLAudioElement>();
const hide = ref(true);
function showHiddenContent(ev: MouseEvent) {
if (defaultStore.state.sensitiveDoubleClickRequired) {
if (hide.value && defaultStore.state.sensitiveDoubleClickRequired) {
ev.preventDefault();
ev.stopPropagation();
return;

View File

@ -135,7 +135,7 @@ function showHiddenContent(ev: MouseEvent) {
return;
}
if (defaultStore.state.sensitiveDoubleClickRequired) {
if (hide.value && defaultStore.state.sensitiveDoubleClickRequired) {
ev.preventDefault();
ev.stopPropagation();
return;

View File

@ -255,7 +255,7 @@ function showMenu(ev: MouseEvent) {
}
function showHiddenContent(ev: MouseEvent) {
if (defaultStore.state.sensitiveDoubleClickRequired) {
if (hide.value && defaultStore.state.sensitiveDoubleClickRequired) {
ev.preventDefault();
ev.stopPropagation();
return;