fix: recalculate timers

- recalculate timers in same update call if necessary
- use new variable to keep track of upcoming rolling events without recalculating titles
This commit is contained in:
cv
2021-10-31 12:53:46 +01:00
parent 0bb728d76c
commit 4d2769dee4
2 changed files with 29 additions and 12 deletions
+2
View File
@@ -12,6 +12,7 @@ export class Timer {
current = null;
timeTag = null;
secondaryTimer = null;
_secondaryTarget = null;
_finishAt = null;
_finishedAt = null;
_startedAt = null;
@@ -122,6 +123,7 @@ export class Timer {
this.current = this.duration;
this.running = null;
this.secondaryTimer = null;
this._secondaryTarget = null;
this._finishAt = null;
this._finishedAt = null;
this._startedAt = null;