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

Function onLongPress

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

Source from the content-addressed store, hash-verified

209 ? stringFormatter.format('longPressMessage')
210 : undefined,
211 onLongPress() {
212 shouldFocusOnOpen.current = true;
213 state.open(true);
214 }
215 });
216
217 // Keep the preview open while the pointer is anywhere within the safe area connecting the link

Callers

nothing calls this directly

Calls 1

openMethod · 0.65

Tested by

no test coverage detected