mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-10 15:54:49 +08:00
Reset lastFrame time when restarting render
This commit is contained in:
parent
8f599930c4
commit
d59293108f
1 changed files with 4 additions and 1 deletions
|
@ -159,7 +159,10 @@ export function reset(immediate = false) {
|
|||
}
|
||||
|
||||
function startRender() {
|
||||
if (!ctx.rendering) render();
|
||||
if (!ctx.rendering) {
|
||||
ctx.lastFrame = Date.now();
|
||||
render();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue