fix import slider, click on slider max
This commit is contained in:
parent
b735a3abef
commit
4a47269972
2 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ class SliderControl {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.#slider.max.onclick = () => {
|
this.#slider.max.onclick = () => {
|
||||||
this.#layerLo = this.#layerMax;
|
this.#layerLo = 0;
|
||||||
this.#layerHi = this.#layerMax;
|
this.#layerHi = this.#layerMax;
|
||||||
this.showLabels();
|
this.showLabels();
|
||||||
this.#updateVisuals();
|
this.#updateVisuals();
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ function updateSliderMax(set) {
|
||||||
api.slider.setMax(max);
|
api.slider.setMax(max);
|
||||||
const { hi } = api.slider.getRange();
|
const { hi } = api.slider.getRange();
|
||||||
if (set || max < hi) {
|
if (set || max < hi) {
|
||||||
api.slider.setRange(max, max);
|
api.slider.setRange(0, max);
|
||||||
api.slider.showLabels();
|
api.slider.showLabels();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue