mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
only scrolling on restart if on test page
This commit is contained in:
parent
026300dd36
commit
fd5e2e6dc9
1 changed files with 2 additions and 1 deletions
|
@ -557,7 +557,8 @@ export function restart(
|
|||
$("#restartTestButton").blur();
|
||||
Funbox.resetMemoryTimer();
|
||||
RateQuotePopup.clearQuoteStats();
|
||||
if (window.scrollY > 0) window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
if (UI.getActivePage() == "pageTest" && window.scrollY > 0)
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
$("#wordsInput").val(" ");
|
||||
|
||||
TestUI.reset();
|
||||
|
|
Loading…
Reference in a new issue