Open fl4p opened 7 years ago
Just fixed a rounding issue that made the tests fail.
And:
Checking for step < 1
is not sufficient, precision issues can occur for all non-integer steps, like 1.001
. I found the only solution is to compute the decimal places of step
with its string representation and use this precision for final rounding of value
.
i confirm the issue, please merge this PR
jsbin with
paper-slider
: https://jsbin.com/votacuzaxe/edit?html,outputThe current work around seems no to be working anymore (compiler optimizations?).
My fix rounds the value with decimal precision.