Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 333df0e

Browse files
committed
fix calc step
1 parent dac5dab commit 333df0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-range.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
},
8989

9090
calcStep: function(value) {
91-
return this.step ? (Math.round(value / this.step) * this.step) : value;
91+
return this.step ? (Math.round(value / this.step) / (1 / this.step)) : value;
9292
},
9393

9494
validateValue: function() {

0 commit comments

Comments
 (0)