rc-slider
Advanced tools
Comparing version 1.4.0 to 1.4.3
@@ -59,3 +59,3 @@ 'use strict'; | ||
value = (props.max - props.min) / (marksLen - 1) * index; | ||
value = value.toFixed(5); | ||
value = value.toFixed(5) / 1; | ||
} | ||
@@ -141,3 +141,3 @@ return value; | ||
onMouseMove: function onMouseMove(e) { | ||
var position = e.pageX; | ||
var position = e.pageX || e.clientX + document.documentElement.scrollLeft; // to compat ie8 | ||
this.onMove(e, position); | ||
@@ -192,3 +192,3 @@ }, | ||
onSliderMouseDown: function onSliderMouseDown(e) { | ||
var position = e.pageX; | ||
var position = e.pageX || e.clientX + document.documentElement.scrollLeft; // to compat ie8 | ||
var value = this._calValueByPos(position); | ||
@@ -330,2 +330,3 @@ this._triggerEvents('onChange', value); | ||
events = { | ||
onClick: this.showTooltip.bind(this, true), | ||
onMouseEnter: this.showTooltip.bind(this, true), | ||
@@ -332,0 +333,0 @@ onMouseLeave: this.showTooltip.bind(this, false) |
{ | ||
"name": "rc-slider", | ||
"version": "1.4.0", | ||
"version": "1.4.3", | ||
"description": "slider ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -103,2 +103,8 @@ # rc-slider | ||
</tr> | ||
<tr> | ||
<td>value</td> | ||
<td>number</td> | ||
<td></td> | ||
<td>Determines the current positions of the handles.</td> | ||
</tr> | ||
<tr> | ||
@@ -123,2 +129,8 @@ <td>marks</td> | ||
<tr> | ||
<td>index</td> | ||
<td>number</td> | ||
<td></td> | ||
<td>For step or marks slider, determine current positions of the handles.</td> | ||
</tr> | ||
<tr> | ||
<td>disabled</td> | ||
@@ -143,3 +155,3 @@ <td>boolean</td> | ||
online example: http://react-component.github.io/slider/examples/ | ||
online example: http://react-component.github.io/slider/ | ||
@@ -146,0 +158,0 @@ ## Test Case |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23739
568
166