Skip to content

Commit fe83b88

Browse files
committed
Round direction
1 parent 78915c4 commit fe83b88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/direction-picker/dial.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Dial extends React.Component {
7474
window.removeEventListener('mouseup', this.unbindMouseEvents);
7575
window.removeEventListener('touchmove', this.handleMouseMove);
7676
window.removeEventListener('touchend', this.unbindMouseEvents);
77-
this.props.onChange(this.state.dialDirection);
77+
this.props.onChange(Math.round(this.state.dialDirection));
7878
}
7979

8080
handleMouseDown (e) {

0 commit comments

Comments
 (0)