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

Function removeTouch

packages/dom-event-testing-library/touchStore.js:50–63  ·  view source on GitHub ↗
(touch)

Source from the content-addressed store, hash-verified

48}
49
50export function removeTouch(touch) {
51 const identifier = touch.identifier;
52 const target = touch.target;
53 if (activeTouches.get(target) != null) {
54 if (activeTouches.get(target).has(identifier)) {
55 activeTouches.get(target).delete(identifier);
56 } else {
57 console.error(
58 'Touch with identifier %s does not exist. Cannot record touch end without a touch start.',
59 identifier,
60 );
61 }
62 }
63}
64
65export function getTouches() {
66 const touches = [];

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
hasMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected