mirror of
https://github.com/pebble-dev/clay.git
synced 2026-10-27 06:59:59 -04:00
Allow floats in the slider component and update docs
This commit is contained in:
1 parent
1142d1adee
commit
878fea0340
11 files changed
+323
-133
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user