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',
|
inline: 'center',
|
||||||
behavior: 'smooth',
|
behavior: 'smooth',
|
||||||
});
|
});
|
||||||
|
} else if (authorRect.top < 0) {
|
||||||
|
authorElement.scrollIntoView({
|
||||||
|
block: 'nearest',
|
||||||
|
inline: 'nearest',
|
||||||
|
behavior: 'smooth',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue