Scroll up too if changing author
This commit is contained in:
parent
d63e6c87c4
commit
f72ec0aba5
|
@ -634,6 +634,12 @@ function Catchup() {
|
|||
inline: 'center',
|
||||
behavior: 'smooth',
|
||||
});
|
||||
} else if (authorRect.top < 0) {
|
||||
authorElement.scrollIntoView({
|
||||
block: 'nearest',
|
||||
inline: 'nearest',
|
||||
behavior: 'smooth',
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue