From 7b6c5338b90b322f6f2c3717ef2466d92f3999c0 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Thu, 5 May 2022 16:59:15 +0700 Subject: [PATCH] Revert added tooltip timeout (#1648) Signed-off-by: Andrey Sobolev --- packages/ui/src/components/TooltipInstance.svelte | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/ui/src/components/TooltipInstance.svelte b/packages/ui/src/components/TooltipInstance.svelte index 78699d9f4f..1b341a2998 100644 --- a/packages/ui/src/components/TooltipInstance.svelte +++ b/packages/ui/src/components/TooltipInstance.svelte @@ -121,7 +121,6 @@ closeTooltip() } - let timeout: number const whileShow = (ev: MouseEvent): void => { if ($tooltip.element && tooltipHTML) { const rectP = tooltipHTML.getBoundingClientRect() @@ -131,18 +130,13 @@ const inPopup: boolean = ev.x >= rectP.left && ev.x <= rectP.right && ev.y >= rectP.top - dT && ev.y <= rectP.bottom + dB - clearTimeout(timeout) if (tooltipSW) { if (!inTrigger) { - timeout = setTimeout(() => { - hideTooltip() - }, 100) + hideTooltip() } } else { if (!(inTrigger || inPopup)) { - timeout = setTimeout(() => { - hideTooltip() - }, 100) + hideTooltip() } } }