aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-19 10:52:37 +0000
committerFuwn <[email protected]>2026-04-19 10:52:37 +0000
commit6e780fdb76155669a72692c64fd51c0da2c932d2 (patch)
tree94080cd47787ca27349948128188cd80480caf6c
parentfix(tooltip): park measurement node off-screen to stop body resize (diff)
downloaddue.moe-6e780fdb76155669a72692c64fd51c0da2c932d2.tar.xz
due.moe-6e780fdb76155669a72692c64fd51c0da2c932d2.zip
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.
-rw-r--r--src/lib/Tooltip/tooltip.ts2
1 files changed, 1 insertions, 1 deletions
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";