|
|
@ -141,7 +141,7 @@ export class SingleSlider extends Single { |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
this.label.on(SignEditor.EVENT_CONFIRM, () => { |
|
|
|
this.label.on(SignEditor.EVENT_CONFIRM, () => { |
|
|
|
const v = parseFloat(this.getValue()); |
|
|
|
const v = parseFloat(this.label.getValue()); |
|
|
|
const percent = this._getPercentByValue(v); |
|
|
|
const percent = this._getPercentByValue(v); |
|
|
|
const significantPercent = parseFloat(percent.toFixed(1)); |
|
|
|
const significantPercent = parseFloat(percent.toFixed(1)); |
|
|
|
this._setAllPosition(significantPercent); |
|
|
|
this._setAllPosition(significantPercent); |
|
|
|