Scroll up too if changing author

pull/450/head 2024.03.11.d34cce6
Lim Chee Aun 2024-03-11 12:21:15 +08:00
rodzic d63e6c87c4
commit f72ec0aba5
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -634,6 +634,12 @@ function Catchup() {
inline: 'center',
behavior: 'smooth',
});
} else if (authorRect.top < 0) {
authorElement.scrollIntoView({
block: 'nearest',
inline: 'nearest',
behavior: 'smooth',
});
}
}
}