reverted change - scrolling right on test restart again

This commit is contained in:
Miodec 2021-12-28 21:44:27 +01:00
parent 6bafb574ca
commit fff525b65b

View file

@ -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);