MCPcopy Create free account
hub / github.com/editablejs/editable / isTouchEvent

Function isTouchEvent

packages/editor/src/utils/event.ts:15–17  ·  view source on GitHub ↗
(event: any)

Source from the content-addressed store, hash-verified

13}
14
15export const isTouchEvent = (event: any): event is TouchEvent => {
16 return typeof window.TouchEvent !== 'undefined' && event instanceof TouchEvent
17}
18
19export const isTouch = (event: any): event is Touch => {
20 return typeof window.Touch !== 'undefined' && event instanceof Touch

Callers 2

handleDocumentMouseMoveFunction · 0.90
getNativeEventFunction · 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…