mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 21:06:58 -04:00
Allow floats in the slider component and update docs
This commit is contained in:
@@ -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