hopefully fixed the line scroll bug

This commit is contained in:
Jack 2020-08-06 02:00:23 +01:00
parent 978e49a2cf
commit 7849b570ac

View file

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