• Dariusz Mikołajczuk's avatar
    Fixed number precision when draggableRange=true · fb033f0b
    Dariusz Mikołajczuk authored
    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.
    fb033f0b
Name
Last commit
Last update
demo Loading commit data...
dist Loading commit data...
src Loading commit data...
tests/specs Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
Gruntfile.js Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
bower.json Loading commit data...
issue_template.md Loading commit data...
karma.conf.js Loading commit data...
package.json Loading commit data...