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

Function onMoveStart

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

Source from the content-addressed store, hash-verified

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

Callers 1

useMoveFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected