MCPcopy Index your code
hub / github.com/react/react / pointercancel

Function pointercancel

packages/dom-event-testing-library/domEvents.js:316–331  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

314}
315
316export function pointercancel(payload) {
317 return createPointerEvent('pointercancel', {
318 ...payload,
319 buttons: 0,
320 detail: 0,
321 height: 1,
322 pageX: 0,
323 pageY: 0,
324 pressure: 0,
325 screenX: 0,
326 screenY: 0,
327 width: 1,
328 x: 0,
329 y: 0,
330 });
331}
332
333export function pointerdown(payload) {
334 const isTouch = payload != null && payload.pointerType === 'touch';

Callers

nothing calls this directly

Calls 1

createPointerEventFunction · 0.85

Tested by

no test coverage detected