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

Function setDragging

packages/react-stately/src/color/useColorWheelState.ts:203–212  ·  view source on GitHub ↗
(isDragging)

Source from the content-addressed store, hash-verified

201 }
202 },
203 setDragging(isDragging) {
204 let wasDragging = isDraggingRef.current;
205 isDraggingRef.current = isDragging;
206
207 if (onChangeEnd && !isDragging && wasDragging) {
208 onChangeEnd(valueRef.current);
209 }
210
211 setDragging(isDragging);
212 },
213 isDragging,
214 getDisplayColor() {
215 return value

Callers

nothing calls this directly

Calls 1

onChangeEndFunction · 0.70

Tested by

no test coverage detected