Skip to content

[Bug]: skipDelayDuration in group isn't applied sometimesΒ #97

@teidesu

Description

@teidesu

Bug description

not sure what exactly causes this to happen, but under some circumstances the skip delay isn't applied.

this seems to happen when closeTooltip is never called for the "old" tooltip, leading to the skip delay timer not being set up.

Reproduction Link

https://stackblitz.com/edit/corvu-tooltip-n16wnmgu?file=src%2FApp.tsx,src%2FApp.css

Reproduction Steps

  1. open repro
  2. hover over item 1, wait for the tooltip to appear
  3. move the mouse slowly towards item 2
  4. notice how we have to wait another openDelay before the tooltip appears
Screen.Recording.2025-10-31.at.19.07.18.mov

Expected behavior

the second item's tooltip opens immediately

Additional context

if we add gap: 8px to the list, the issue goes away, probably because old item's pointerleave fires much earlier than the new item's pointerenter

the issue is also less noticeable if we move the cursor fast enough after the first tooltip opens, although the tooltip for the closest element is never shown

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions