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

Function decrementY

packages/react-stately/src/color/useColorAreaState.ts:225–227  ·  view source on GitHub ↗
(stepSize = 1)

Source from the content-addressed store, hash-verified

223 setXValue(snapValueToStep(xValue - stepSize, minValueX, maxValueX, stepX));
224 },
225 decrementY(stepSize = 1) {
226 setYValue(snapValueToStep(yValue - stepSize, minValueY, maxValueY, stepY));
227 },
228 setDragging(isDragging) {
229 let wasDragging = isDraggingRef.current;
230 isDraggingRef.current = isDragging;

Callers 1

onMoveFunction · 0.85

Calls 2

snapValueToStepFunction · 0.90
setYValueFunction · 0.85

Tested by

no test coverage detected