mirror of
https://github.com/wassname/slider.git
synced 2026-09-11 12:42:49 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4c06c2509 | ||
|
|
ff9e68cd36 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rc-slider",
|
"name": "rc-slider",
|
||||||
"version": "3.7.0",
|
"version": "3.7.1",
|
||||||
"description": "slider ui component for react",
|
"description": "slider ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ class Slider extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMouseDown(e) {
|
onMouseDown(e) {
|
||||||
|
if (e.button !== 0) { return; }
|
||||||
const position = getMousePosition(this.props.vertical, e);
|
const position = getMousePosition(this.props.vertical, e);
|
||||||
this.onStart(position);
|
this.onStart(position);
|
||||||
this.addDocumentEvents('mouse');
|
this.addDocumentEvents('mouse');
|
||||||
|
|||||||
Reference in New Issue
Block a user