From 6e780fdb76155669a72692c64fd51c0da2c932d2 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 19 Apr 2026 10:52:37 +0000 Subject: fix(tooltip): drop position transition so tooltip snaps instead of sliding The opacity+top+left transition combined with the off-screen parking caused tooltips to animate from -9999px into place ("pops down from the top") and lagged cursor tracking in the non-pinned variant used by birthdays. Keep only the opacity fade; position updates snap. --- src/lib/Tooltip/tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Tooltip/tooltip.ts b/src/lib/Tooltip/tooltip.ts index 488dba5a..d3187987 100644 --- a/src/lib/Tooltip/tooltip.ts +++ b/src/lib/Tooltip/tooltip.ts @@ -18,7 +18,7 @@ const tooltip = (element: HTMLElement) => { tooltipDiv.style.top = "-9999px"; tooltipDiv.style.zIndex = "1000"; tooltipDiv.style.opacity = "0"; - tooltipDiv.style.transition = `opacity ${tooltipTransitionTime}ms ease-in-out, top 0.3s ease, left 0.3s ease`; + tooltipDiv.style.transition = `opacity ${tooltipTransitionTime}ms ease-in-out`; tooltipDiv.style.pointerEvents = "none"; tooltipDiv.style.whiteSpace = "nowrap"; tooltipDiv.style.zIndex = "1000"; -- cgit v1.2.3