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

Function getPosition

packages/react-aria/src/utils/useDrag1D.ts:61–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 onCollapseToggle
60 } = props;
61 let getPosition = e => (orientation === 'horizontal' ? e.clientX : e.clientY);
62 let getNextOffset = (e: MouseEvent) => {
63 let containerOffset = getOffset(containerRef.current, reverse, orientation);
64 let mouseOffset = getPosition(e);

Callers 2

getNextOffsetFunction · 0.70
ColorLoupeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected