epicenter
epicenter copied to clipboard
fix(tooltip): coordinate tooltips globally and adjust delay timing
This PR fixes two related tooltip behavior issues:
- Tooltip delay duration — Reduced the delay so users see the tooltip almost instantly, without having to wait too long.
- Multiple tooltips visible — When quickly hovering between different triggers, more than one tooltip could remain visible at the same time.
Changes Made
- Set
delayDurationto300andskipDelayDurationto150for faster tooltip display and instant hide behavior. - Added logic to ensure only one tooltip can be open at any time when switching between triggers.
Testing Steps
- Hover over a tooltip — it should appear almost immediately.
- Quickly hover between two or more tooltip triggers — only the most recent tooltip should be visible.
Impact
Improves user experience by:
- Making tooltips appear without unnecessary waiting.
- Preventing overlapping tooltips when moving quickly between elements.