summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 07082401..dde36cc5 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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");
}