mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
reverted change - scrolling right on test restart again
This commit is contained in:
parent
6bafb574ca
commit
fff525b65b
1 changed files with 1 additions and 1 deletions
|
@ -558,6 +558,7 @@ export function restart(
|
|||
$("#restartTestButton").blur();
|
||||
Funbox.resetMemoryTimer();
|
||||
RateQuotePopup.clearQuoteStats();
|
||||
if (window.scrollY > 0) window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
$("#wordsInput").val(" ");
|
||||
|
||||
TestUI.reset();
|
||||
|
@ -594,7 +595,6 @@ export function restart(
|
|||
$("#monkey").stop(true, true).css({ animationDuration: "0s" });
|
||||
$("#typingTest").css("opacity", 0).removeClass("hidden");
|
||||
$("#wordsInput").val(" ");
|
||||
if(window.scrollY > 0) window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
if (!withSameWordset) {
|
||||
setRepeated(false);
|
||||
setPaceRepeat(repeatWithPace);
|
||||
|
|
Loading…
Reference in a new issue