Commit fb033f0
committed
Fixed number precision when draggableRange=true
When there was set options.precision>0 (non-zero fraction part)
and moved a range there was a issue with number rounding on both
ends of selected range. Sometimes numbers had small value at far fraction.
It can be reproduced with live demo by setting, for example:
minValue: 3.6,
maxValue: 5.8
floor: 0,
ceil: 10
step: 0.1,
precision: 1,
draggableRange: true
It's possible to produce value, e.g: 6.2999999999... but used precision
expects to see rounded value: 6.3.1 parent 85afa53 commit fb033f0
File tree
5 files changed
+11
-5
lines changed- dist
- src
5 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
| 1552 | + | |
1552 | 1553 | | |
1553 | 1554 | | |
1554 | 1555 | | |
1555 | 1556 | | |
1556 | 1557 | | |
| 1558 | + | |
1557 | 1559 | | |
1558 | 1560 | | |
1559 | 1561 | | |
1560 | 1562 | | |
| 1563 | + | |
1561 | 1564 | | |
1562 | 1565 | | |
1563 | 1566 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
| 1556 | + | |
1556 | 1557 | | |
1557 | 1558 | | |
1558 | 1559 | | |
1559 | 1560 | | |
1560 | 1561 | | |
| 1562 | + | |
1561 | 1563 | | |
1562 | 1564 | | |
1563 | 1565 | | |
1564 | 1566 | | |
| 1567 | + | |
1565 | 1568 | | |
1566 | 1569 | | |
1567 | 1570 | | |
| |||
0 commit comments