mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
Fixed scroll to body might not animate
This commit is contained in:
parent
e64249453f
commit
6b383d49bb
2 changed files with 4 additions and 4 deletions
|
@ -69,13 +69,13 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
function scrollToTop() {
|
||||
$(document.body).animate({
|
||||
$('body, html').stop(true, true).animate({
|
||||
scrollTop: 0
|
||||
}, 100, "linear");
|
||||
}
|
||||
|
||||
function scrollToBottom() {
|
||||
$(document.body).animate({
|
||||
$('body, html').stop(true, true).animate({
|
||||
scrollTop: $(document.body)[0].scrollHeight
|
||||
}, 100, "linear");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue