MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onMouseUp

Function onMouseUp

packages/react-aria/src/interactions/useMove.ts:122–130  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

120 }
121 };
122 let onMouseUp = (e: MouseEvent) => {
123 if (e.button === 0) {
124 // oxlint-disable-next-line react/react-compiler
125 endEvent(e, 'mouse');
126 let ownerWindow = getOwnerWindow(getEventTarget(e));
127 removeGlobalListener(ownerWindow, 'mousemove', onMouseMove, false);
128 removeGlobalListener(ownerWindow, 'mouseup', onMouseUp, false);
129 }
130 };
131 moveProps.onMouseDown = (e: React.MouseEvent) => {
132 if (e.button === 0) {
133 start();

Callers

nothing calls this directly

Calls 2

getOwnerWindowFunction · 0.90
getEventTargetFunction · 0.90

Tested by

no test coverage detected