mirror of
https://github.com/status-im/codimd.git
synced 2025-01-26 23:38:59 +00:00
Fixed scroll to body might not animate
This commit is contained in:
parent
e64249453f
commit
6b383d49bb
@ -759,7 +759,7 @@ function scrollToTop() {
|
||||
scrollTop: 0
|
||||
}, 100, "linear");
|
||||
} else {
|
||||
$(document.body).animate({
|
||||
$('body, html').stop(true, true).animate({
|
||||
scrollTop: 0
|
||||
}, 100, "linear");
|
||||
}
|
||||
@ -776,7 +776,7 @@ function scrollToBottom() {
|
||||
scrollTop: ui.area.view[0].scrollHeight
|
||||
}, 100, "linear");
|
||||
} else {
|
||||
$(document.body).animate({
|
||||
$('body, html').stop(true, true).animate({
|
||||
scrollTop: $(document.body)[0].scrollHeight
|
||||
}, 100, "linear");
|
||||
}
|
||||
|
@ -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…
x
Reference in New Issue
Block a user