We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3775ce0 commit e4fd9b7Copy full SHA for e4fd9b7
dist/rzslider.js
@@ -911,10 +911,7 @@
911
* @returns {number}
912
*/
913
roundStep: function(value) {
914
- var step = this.step,
915
- remainder = +((value - this.minValue) % step).toFixed(3),
916
- steppedValue = remainder > (step / 2) ? value + step - remainder : value - remainder;
917
-
+ var steppedValue = Math.round(value / this.step) * this.step;
918
steppedValue = steppedValue.toFixed(this.precision);
919
return +steppedValue;
920
},
0 commit comments