Allow floats in the slider component and update docs

This commit is contained in:
Keegan
2016-03-11 01:07:17 +11:00
parent 1142d1adee
commit 878fea0340
11 changed files with 323 additions and 133 deletions
+4
View File
@@ -29,6 +29,10 @@ module.exports = {
$valuePad.set('innerHTML', value);
}
var step = self.$manipulatorTarget.get('step');
step = step.toString(10).split('.')[1];
self.precision = step ? step.length : 0;
self.on('change', setValueDisplay);
setValueDisplay();