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

Function whenMouse

packages/ui/src/menu.tsx:1004–1006  ·  view source on GitHub ↗
(handler: React.PointerEventHandler<E>)

Source from the content-addressed store, hash-verified

1002}
1003
1004function whenMouse<E>(handler: React.PointerEventHandler<E>): React.PointerEventHandler<E> {
1005 return event => (event.pointerType === 'mouse' ? handler(event) : undefined)
1006}
1007
1008export {
1009 Menu,

Callers 1

menu.tsxFile · 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…