Progressbar steps are floats, can't reach 100 in some cases :D

This commit is contained in:
Mario Zechner 2023-07-05 20:39:09 +02:00
parent 36fd2e9705
commit 181b672f76

View File

@ -15,7 +15,7 @@ class ProgressBar {
addStep() {
this.progress += this.step;
this.progressBar.style.transform = `scaleX(${this.progress / 100})`;
if (this.progress >= 100) {
if (this.progress >= 99) {
this.finished();
}
}