We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78915c4 commit fe83b88Copy full SHA for fe83b88
1 file changed
src/components/direction-picker/dial.jsx
@@ -74,7 +74,7 @@ class Dial extends React.Component {
74
window.removeEventListener('mouseup', this.unbindMouseEvents);
75
window.removeEventListener('touchmove', this.handleMouseMove);
76
window.removeEventListener('touchend', this.unbindMouseEvents);
77
- this.props.onChange(this.state.dialDirection);
+ this.props.onChange(Math.round(this.state.dialDirection));
78
}
79
80
handleMouseDown (e) {
0 commit comments