mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 05:43:47 +08:00
fixed a bug where smooth scroll would cause the lines to jump after restarting
This commit is contained in:
parent
311f70ac4f
commit
644b292d4b
1 changed files with 1 additions and 1 deletions
|
@ -3289,7 +3289,7 @@ $(document).keypress(function (event) {
|
|||
|
||||
// console.time("offcheck1");
|
||||
let newActiveTop = document.querySelector("#words .word.active").offsetTop;
|
||||
if (activeWordTopBeforeJump != newActiveTop && !lineTransition) {
|
||||
if (activeWordTopBeforeJump < newActiveTop && !lineTransition) {
|
||||
activeWordJumped = true;
|
||||
} else {
|
||||
activeWordJumped = false;
|
||||
|
|
Loading…
Reference in a new issue