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

Function getTouches

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

Source from the content-addressed store, hash-verified

63}
64
65export function getTouches() {
66 const touches = [];
67 activeTouches.forEach((_, target) => {
68 touches.push(...getTargetTouches(target));
69 });
70 return touches;
71}
72
73export function getTargetTouches(target) {
74 if (activeTouches.get(target) != null) {

Callers

nothing calls this directly

Calls 3

getTargetTouchesFunction · 0.85
forEachMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected