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

Function onMoveStart

packages/react-aria/src/color/useColorWheel.ts:94–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93 let moveHandler = {
94 onMoveStart() {
95 currentPosition.current = null;
96 state.setDragging(true);
97 },
98 onMove({deltaX, deltaY, pointerType, shiftKey}) {
99 if (currentPosition.current == null) {
100 currentPosition.current = state.getThumbPosition(thumbRadius);

Callers

nothing calls this directly

Calls 1

setDraggingMethod · 0.65

Tested by

no test coverage detected