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

Function onChangeEnd

packages/react-stately/src/color/useColorSliderState.ts:98–103  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

96 setColor(color.withChannelValue(channel, v));
97 },
98 onChangeEnd(v) {
99 // onChange will have already been called with the right value, this is just to trigger onChangeEnd
100 if (props.onChangeEnd) {
101 props.onChangeEnd(color.withChannelValue(channel, v));
102 }
103 }
104 });
105
106 let {step, pageSize} = color.getChannelRange(channel);

Callers 3

setDraggingFunction · 0.70
setDraggingFunction · 0.70
updateDraggingFunction · 0.50

Calls 1

withChannelValueMethod · 0.80

Tested by

no test coverage detected