mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
Merge pull request #73003 from NousResearch/bb/tooltip-skip-delay
fix(desktop): zero Tip skipDelayDuration so the hover delay actually sticks
This commit is contained in:
commit
e56480057c
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,11 @@ const HasTooltipProvider = React.createContext(false)
|
|||
|
||||
function TooltipProvider({
|
||||
delayDuration = 0,
|
||||
// Radix's "skip" grace: after one tip opens, every trigger touched within
|
||||
// this window opens INSTANTLY, delay bypassed. Its 300ms default meant a
|
||||
// cursor sweeping the chrome still flashed a trail of tips despite the
|
||||
// hover delay. Zero it so each tip independently honors `delayDuration`.
|
||||
skipDelayDuration = 0,
|
||||
// Tips are labels, not interactive surfaces. Hoverable content + Radix's
|
||||
// pointer-grace bridge is what leaves tips stuck open — especially over
|
||||
// Electron `-webkit-app-region: drag` chrome where pointermove never fires
|
||||
|
|
@ -28,6 +33,7 @@ function TooltipProvider({
|
|||
data-slot="tooltip-provider"
|
||||
delayDuration={delayDuration}
|
||||
disableHoverableContent={disableHoverableContent}
|
||||
skipDelayDuration={skipDelayDuration}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue