ignore right button on mousedown (#107)

fix: should ignore right button on mousedown
This commit is contained in:
Jordan Stephens
2016-06-12 09:16:24 +08:00
committed by Benjy Cui
parent 1adc68504a
commit ff9e68cd36
+1
View File
@@ -167,6 +167,7 @@ class Slider extends React.Component {
}
onMouseDown(e) {
if (e.button !== 0) { return; }
const position = getMousePosition(this.props.vertical, e);
this.onStart(position);
this.addDocumentEvents('mouse');