From eb5ea87a67664a41293e10d0187630d37aaac2f8 Mon Sep 17 00:00:00 2001 From: mbnuqw Date: Fri, 16 Feb 2024 23:56:48 +0500 Subject: [PATCH] chore: refactoring --- src/sidebar/components/tab.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sidebar/components/tab.vue b/src/sidebar/components/tab.vue index e79f9e7a..e37bcc77 100644 --- a/src/sidebar/components/tab.vue +++ b/src/sidebar/components/tab.vue @@ -511,11 +511,11 @@ function onMouseLeave(): void { clearTimeout(Preview.state.mouseEnterTimeout) clearTimeout(Preview.state.mouseLeaveTimeout) - Preview.state.mouseLeaveTimeout = setTimeout(() => { - if (!Settings.state.previewTabsInline) { + if (!Settings.state.previewTabsInline) { + Preview.state.mouseLeaveTimeout = setTimeout(() => { Preview.closePreviewPopup() - } - }, 32) + }, 32) + } } }