mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-24 09:25:53 +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() {
|
||||
this.progress += this.step;
|
||||
this.progressBar.style.transform = `scaleX(${this.progress / 100})`;
|
||||
if (this.progress >= 100) {
|
||||
if (this.progress >= 99) {
|
||||
this.finished();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user