MCPcopy Index your code
hub / github.com/react-toolbox/react-toolbox / move

Method move

components/time_picker/ClockHand.js:103–107  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

101 }
102
103 move (position) {
104 const degrees = this.trimAngleToValue(this.positionToAngle(position));
105 const radius = this.getPositionRadius(position);
106 if (this.props.onMove) this.props.onMove(degrees === 360 ? 0 : degrees, radius);
107 }
108
109 render () {
110 const { theme } = this.props;

Callers 4

HandClass · 0.95
mouseStartMethod · 0.95
touchStartMethod · 0.95
Slider.jsFile · 0.80

Calls 3

trimAngleToValueMethod · 0.95
positionToAngleMethod · 0.95
getPositionRadiusMethod · 0.95

Tested by

no test coverage detected