MCPcopy Index your code
hub / github.com/adobe/react-spectrum / onMoveStart

Function onMoveStart

packages/react-aria/src/slider/useSlider.ts:82–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 const currentPosition = useRef<number | null>(null);
81 const {moveProps} = useMove({
82 onMoveStart() {
83 currentPosition.current = null;
84 },
85 onMove({deltaX, deltaY}) {
86 if (!trackRef.current) {
87 return;

Callers 1

useMoveFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected