MCPcopy
hub / github.com/adobe/react-spectrum / onMouseUp

Function onMouseUp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getOwnerWindowFunction · 0.90
getEventTargetFunction · 0.90

Tested by

no test coverage detected