MCPcopy Create free account
hub / github.com/dailydotdev/apps / onPointerDown

Function onPointerDown

packages/shared/src/features/snapshot/useTextSelection.ts:142–146  ·  view source on GitHub ↗
(event: PointerEvent)

Source from the content-addressed store, hash-verified

140 const isIgnored = (event: PointerEvent) =>
141 !!ignoreRef?.current?.contains(event.target as Node);
142 const onPointerDown = (event: PointerEvent) => {
143 if (!isIgnored(event)) {
144 setSelection(null);
145 }
146 };
147 const onPointerUp = (event: PointerEvent) => {
148 if (isIgnored(event)) {
149 return;

Callers

nothing calls this directly

Calls 1

isIgnoredFunction · 0.70

Tested by

no test coverage detected