(isDragging)
| 226 | setYValue(snapValueToStep(yValue - stepSize, minValueY, maxValueY, stepY)); |
| 227 | }, |
| 228 | setDragging(isDragging) { |
| 229 | let wasDragging = isDraggingRef.current; |
| 230 | isDraggingRef.current = isDragging; |
| 231 | |
| 232 | if (onChangeEnd && !isDragging && wasDragging) { |
| 233 | onChangeEnd(valueRef.current); |
| 234 | } |
| 235 | |
| 236 | setDragging(isDragging); |
| 237 | }, |
| 238 | isDragging, |
| 239 | getDisplayColor() { |
| 240 | return color.withChannelValue('alpha', 1); |
no test coverage detected