Open zbury opened 8 years ago
I seem to be running into a rounding issue when this.min is negative.
this.min
A simple paper-slider element will reproduce this:
paper-slider
<paper-slider step=".2" min="-60" pin></paper-slider> https://jsbin.com/radipokecu/1/edit?html,output
<paper-slider step=".2" min="-60" pin></paper-slider>
Instead of rounding to the precision of step, the paper-slider gets values like -3.6000000000000014.
step
I have a fix for this: https://github.com/PolymerElements/iron-range-behavior/pull/27
I seem to be running into a rounding issue when
this.min
is negative.A simple
paper-slider
element will reproduce this:<paper-slider step=".2" min="-60" pin></paper-slider>
https://jsbin.com/radipokecu/1/edit?html,outputInstead of rounding to the precision of
step
, thepaper-slider
gets values like -3.6000000000000014.