MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onHoverStart

Function onHoverStart

packages/react-aria/src/tooltip/usePreviewTrigger.ts:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }, [state.isOpen, popoverRef]);
125
126 let onHoverStart = () => {
127 // Match useTooltipTrigger: only treat as hovered when the modality is actually a pointer.
128 if (getInteractionModality() === 'pointer') {
129 pointerInSafeArea.current = true;
130 state.open();
131 }
132 };
133
134 let onHoverEnd = () => {
135 // Before the preview opens, cancel a pending warmup if the pointer leaves the trigger. Once

Callers

nothing calls this directly

Calls 2

getInteractionModalityFunction · 0.90
openMethod · 0.65

Tested by

no test coverage detected