MCPcopy
hub / github.com/facebook/react / hasPointerEvent

Function hasPointerEvent

packages/dom-event-testing-library/domEnvironment.js:18–20  ·  packages/dom-event-testing-library/domEnvironment.js::hasPointerEvent
()

Source from the content-addressed store, hash-verified

16function emptyFunction() {}
17
18export function hasPointerEvent() {
19 return global != null && global.PointerEvent != null;
20}
21
22export function setPointerEvent(bool) {
23 const pointerCaptureFn = name => id => {

Callers 9

testWithPointerTypeFunction · 0.90
contextmenuFunction · 0.90
pointercancelFunction · 0.90
pointerdownFunction · 0.90
pointerenterFunction · 0.90
pointerexitFunction · 0.90
pointerhoverFunction · 0.90
pointermoveFunction · 0.90
pointerupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected