fix #984 Expected End of timeline is not calculated correctly (#985)

This commit is contained in:
Leon Eckardt
2024-05-20 22:28:23 +02:00
committed by GitHub
parent 036d4051fc
commit 97b8e6a290
4 changed files with 11 additions and 10 deletions
+2 -1
View File
@@ -301,7 +301,7 @@ export function start(state: RuntimeState = runtimeState): boolean {
}
state.runtime.offset = getRuntimeOffset(state);
state.runtime.expectedEnd = state.runtime.plannedEnd + state.runtime.offset;
state.runtime.expectedEnd = state.runtime.plannedEnd - state.runtime.offset;
return true;
}
@@ -389,6 +389,7 @@ export function update(): UpdateResult {
// update offset
runtimeState.runtime.offset = getRuntimeOffset(runtimeState);
runtimeState.runtime.expectedEnd = getExpectedEnd(runtimeState);
return {
hasTimerFinished,