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

Function isTouch

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

Source from the content-addressed store, hash-verified

17}
18
19export const isTouch = (event: any): event is Touch => {
20 return typeof window.Touch !== 'undefined' && event instanceof Touch
21}
22
23export const isMouseEvent = (event: any): event is MouseEvent => {
24 return event instanceof MouseEvent

Callers 1

findEventPointFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…