bugfix: paused time not reset

This commit is contained in:
cv
2021-04-27 00:10:47 +02:00
parent b533d2493e
commit ff2c38c731
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -605,6 +605,7 @@ class EventTimer extends Timer {
}
goto(eventIndex) {
// load event
this.loadEvent(eventIndex);
// broadcast current state
+1
View File
@@ -130,6 +130,7 @@ class Timer {
if (this.state === 'start') return;
else if (this.duration === 0) return;
else if (this.startedAt == null) {
this._resetTimers();
const now = this._getCurrentTime();
this._startedAt = now;
this._finishAt = now + this.duration;