Allow floats in the slider component and update docs

This commit is contained in:
Keegan committed 2016-03-11 01:07:17 +11:00
1 parent 1142d1adee
commit 878fea0340
11 files changed
+323 -133

No files matched your search

+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();