removeTouch() — react Function Reference
Architecture documentation for the removeTouch() function in touchStore.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 50f207cf_f1ef_284f_520d_b159fc0f8b6b["removeTouch()"] 56f57e4a_fc42_037d_ee3b_9463227d15f3["touchStore.js"] 50f207cf_f1ef_284f_520d_b159fc0f8b6b -->|defined in| 56f57e4a_fc42_037d_ee3b_9463227d15f3 6e92fb29_1b7c_e506_23d4_54a296376a58["contextmenu()"] 6e92fb29_1b7c_e506_23d4_54a296376a58 -->|calls| 50f207cf_f1ef_284f_520d_b159fc0f8b6b 1ce81e05_e892_8647_aba7_5d63c17ca494["pointercancel()"] 1ce81e05_e892_8647_aba7_5d63c17ca494 -->|calls| 50f207cf_f1ef_284f_520d_b159fc0f8b6b 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae["pointerup()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 50f207cf_f1ef_284f_520d_b159fc0f8b6b style 50f207cf_f1ef_284f_520d_b159fc0f8b6b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/dom-event-testing-library/touchStore.js lines 50–63
export function removeTouch(touch) {
const identifier = touch.identifier;
const target = touch.target;
if (activeTouches.get(target) != null) {
if (activeTouches.get(target).has(identifier)) {
activeTouches.get(target).delete(identifier);
} else {
console.error(
'Touch with identifier %s does not exist. Cannot record touch end without a touch start.',
identifier,
);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does removeTouch() do?
removeTouch() is a function in the react codebase, defined in packages/dom-event-testing-library/touchStore.js.
Where is removeTouch() defined?
removeTouch() is defined in packages/dom-event-testing-library/touchStore.js at line 50.
What calls removeTouch()?
removeTouch() is called by 3 function(s): contextmenu, pointercancel, pointerup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free