fixed processing new max on reload

This commit is contained in:
Eike Ahmels
2021-02-27 22:55:51 +01:00
parent 36a29eb629
commit 16efdc6042

View File

@@ -143,7 +143,8 @@
clearTimeout(this.processingTimer);
this.processingTimer = null;
}
if (this.value === this.processedMax || this.value === this.processedMin) {
console.log(this.value, this.processedMax);
if (this.value >= this.processedMax) {
this.processingTimer = setTimeout(() => {
this.processedMin = Math.max(0, this.value - this.dynamicStep);
this.processedMax = Math.min(1000, this.value + this.dynamicStep);