mirror of
https://github.com/wassname/slider.git
synced 2026-09-09 11:35:22 +08:00
ignore right button on mousedown (#107)
fix: should ignore right button on mousedown
This commit is contained in:
committed by
Benjy Cui
parent
1adc68504a
commit
ff9e68cd36
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user