Better bt download flow (#927)

* round the drif

* restart compile automatically

* add settle
This commit is contained in:
Peli de Halleux
2019-09-29 23:08:46 -07:00
committed by GitHub
parent 6c9ff804c8
commit 4dc2872286
5 changed files with 9 additions and 16 deletions

View File

@ -77,8 +77,6 @@ export class FieldSpeed extends Blockly.FieldSlider implements Blockly.FieldCust
setReadout_(readout: Element, value: string) {
let x = parseFloat(value) || 0;
// snap on multiple of 5
x = Math.round(x / 5) * 5;
this.updateSpeed(x);
// Update reporter
this.reporter.textContent = `${x}%`;