Scroll up too if changing author

This commit is contained in:
Lim Chee Aun 2024-03-11 12:21:15 +08:00
parent d63e6c87c4
commit f72ec0aba5

View file

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