mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-28 11:25:50 +02:00
Progressbar steps are floats, can't reach 100 in some cases :D
This commit is contained in:
parent
36fd2e9705
commit
181b672f76
|
@ -15,7 +15,7 @@ class ProgressBar {
|
||||||
addStep() {
|
addStep() {
|
||||||
this.progress += this.step;
|
this.progress += this.step;
|
||||||
this.progressBar.style.transform = `scaleX(${this.progress / 100})`;
|
this.progressBar.style.transform = `scaleX(${this.progress / 100})`;
|
||||||
if (this.progress >= 100) {
|
if (this.progress >= 99) {
|
||||||
this.finished();
|
this.finished();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user