MCPcopy
hub / github.com/react-dnd/react-dnd / isTouchEvent

Function isTouchEvent

packages/backend-touch/src/utils/predicates.ts:37–41  ·  view source on GitHub ↗
(
	e: Touch | TouchEvent | MouseEvent,
)

Source from the content-addressed store, hash-verified

35}
36
37export function isTouchEvent(
38 e: Touch | TouchEvent | MouseEvent,
39): e is TouchEvent {
40 return !!(e as TouchEvent).targetTouches
41}

Callers 2

TouchBackendImplClass · 0.85
getEventClientOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…