refactor: added time is time ahead

This commit is contained in:
Carlos Valente
2024-04-26 14:23:30 +02:00
committed by Carlos Valente
parent 74418ce17e
commit 8b5034efbf
2 changed files with 31 additions and 8 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ export function getRuntimeOffset(state: RuntimeState): MaybeNumber {
const startOffset = startedAt - timeStart;
const pausedTime = state._timer.pausedAt === null ? 0 : clock - state._timer.pausedAt;
return startOffset + addedTime + pausedTime + overtime;
return startOffset - addedTime + pausedTime + overtime;
}
/**