Skip to content

Commit

Permalink
add more comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Nov 21, 2024
1 parent 2fc61f7 commit e6ed429
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Tooltip/EducationalTooltip/TooltipManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// We store the timeouts for each pending tooltip here.
// We're using the timeout because when a tooltip is used inside an animated view (e.g., popover),
// we need to wait for the animation to finish before measuring content.
const pendingTooltips = new Set<NodeJS.Timeout>();
// We store the callback for closing a tooltip here.
const activeTooltips = new Set<() => void>();

function addPendingTooltip(timeout: NodeJS.Timeout) {
Expand Down

0 comments on commit e6ed429

Please sign in to comment.