pointerup() — react Function Reference
Architecture documentation for the pointerup() function in domEventSequences.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae["pointerup()"] d4066e75_dcea_2912_73ff_88e30b9530d2["domEventSequences.js"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|defined in| d4066e75_dcea_2912_73ff_88e30b9530d2 0b56914f_46d1_ad4a_1f97_33d29d21682f["pointerup()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 0b56914f_46d1_ad4a_1f97_33d29d21682f 1819405c_be2c_2496_d31b_ddd53ba73ba9["getPointerType()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 1819405c_be2c_2496_d31b_ddd53ba73ba9 010da236_784b_cbe9_c79d_2a93e35a2880["hasPointerEvent()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 010da236_784b_cbe9_c79d_2a93e35a2880 01ff7b27_2ca8_86bf_2359_31f41319a030["mouseup()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 01ff7b27_2ca8_86bf_2359_31f41319a030 77d0e704_efd0_ba4c_896f_de59a20f8d63["click()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 77d0e704_efd0_ba4c_896f_de59a20f8d63 18ea192f_83cf_e4ec_33dc_53f1022dc801["lostpointercapture()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 18ea192f_83cf_e4ec_33dc_53f1022dc801 ae94c481_1138_134c_7bb2_389e04811fb0["pointerout()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| ae94c481_1138_134c_7bb2_389e04811fb0 f8296a97_da2d_82a1_9796_f83a736b220d["pointerleave()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| f8296a97_da2d_82a1_9796_f83a736b220d e34ccbc5_59a5_f36e_988d_f8b3d9276499["createTouch()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| e34ccbc5_59a5_f36e_988d_f8b3d9276499 50f207cf_f1ef_284f_520d_b159fc0f8b6b["removeTouch()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 50f207cf_f1ef_284f_520d_b159fc0f8b6b 0dab3578_90b3_815b_5690_5f9eec1a66ca["createTouchEventPayload()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 0dab3578_90b3_815b_5690_5f9eec1a66ca 8320792d_fa55_f7ea_b3c9_aab0bbc23016["touchend()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 8320792d_fa55_f7ea_b3c9_aab0bbc23016 2462392a_7db0_8bfd_b658_c8930f752934["mouseover()"] 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae -->|calls| 2462392a_7db0_8bfd_b658_c8930f752934 style 5d33cdd5_f0cb_068c_e5f4_c7bb90f089ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/dom-event-testing-library/domEventSequences.js lines 316–352
export function pointerup(target, defaultPayload) {
const dispatch = arg => target.dispatchEvent(arg);
const pointerType = getPointerType(defaultPayload);
const payload = {
pointerId: defaultPointerId,
pointerType,
...defaultPayload,
};
if (pointerType === 'mouse') {
if (hasPointerEvent()) {
dispatch(domEvents.pointerup(payload));
}
dispatch(domEvents.mouseup(payload));
dispatch(domEvents.click(payload));
} else {
if (hasPointerEvent()) {
dispatch(domEvents.pointerup(payload));
dispatch(domEvents.lostpointercapture(payload));
dispatch(domEvents.pointerout(payload));
dispatch(domEvents.pointerleave(payload));
}
const touch = createTouch(target, payload);
touchStore.removeTouch(touch);
const touchEventPayload = createTouchEventPayload(target, touch, payload);
dispatch(domEvents.touchend(touchEventPayload));
dispatch(domEvents.mouseover(payload));
dispatch(domEvents.mousemove(payload));
dispatch(domEvents.mousedown(payload));
if (document.activeElement !== target) {
dispatch(domEvents.focus());
}
dispatch(domEvents.mouseup(payload));
dispatch(domEvents.click(payload));
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does pointerup() do?
pointerup() is a function in the react codebase, defined in packages/dom-event-testing-library/domEventSequences.js.
Where is pointerup() defined?
pointerup() is defined in packages/dom-event-testing-library/domEventSequences.js at line 316.
What does pointerup() call?
pointerup() calls 16 function(s): click, createTouch, createTouchEventPayload, focus, getPointerType, hasPointerEvent, lostpointercapture, mousedown, and 8 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free