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

Function isMouseEvent

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

Source from the content-addressed store, hash-verified

21}
22
23export const isMouseEvent = (event: any): event is MouseEvent => {
24 return event instanceof MouseEvent
25}
26
27export const getNativeEvent = (event: any) => {
28 const { nativeEvent } = event

Callers 2

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