mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Scroll up too if changing author
This commit is contained in:
parent
d63e6c87c4
commit
f72ec0aba5
1 changed files with 6 additions and 0 deletions
|
@ -634,6 +634,12 @@ function Catchup() {
|
|||
inline: 'center',
|
||||
behavior: 'smooth',
|
||||
});
|
||||
} else if (authorRect.top < 0) {
|
||||
authorElement.scrollIntoView({
|
||||
block: 'nearest',
|
||||
inline: 'nearest',
|
||||
behavior: 'smooth',
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue