diff --git a/src/core/automator/automator-commands.js b/src/core/automator/automator-commands.js index de95b771e..3540bb696 100644 --- a/src/core/automator/automator-commands.js +++ b/src/core/automator/automator-commands.js @@ -401,7 +401,7 @@ export const AutomatorCommands = [ S.commandState = { timeMs: 0 }; AutomatorData.logCommandEvent(`Pause started (waiting ${timeString})`, ctx.startLine); } else { - S.commandState.timeMs += Math.max(Time.unscaledDeltaTime.milliseconds, AutomatorBackend.currentInterval); + S.commandState.timeMs += Math.max(Time.unscaledDeltaTime.totalMilliseconds, AutomatorBackend.currentInterval); } const finishPause = S.commandState.timeMs >= duration; if (finishPause) {