mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-12 15:11:06 +08:00
hopefully fixed the line scroll bug
This commit is contained in:
parent
978e49a2cf
commit
7849b570ac
1 changed files with 1 additions and 1 deletions
|
|
@ -3376,7 +3376,7 @@ $(document).keydown((event) => {
|
|||
if ($(wordElements[i]).hasClass("hidden")) continue;
|
||||
// let forWordTop = Math.floor($(wordElements[i]).position().top);
|
||||
let forWordTop = Math.floor(wordElements[i].offsetTop);
|
||||
if (forWordTop < hideBound) {
|
||||
if (forWordTop < hideBound - 10) {
|
||||
// $($("#words .word")[i]).addClass("hidden");
|
||||
toHide.push($($("#words .word")[i]));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue