A platform for community discussion. Free, open, simple.
FIX: Automatic scrolling in PM not working.
Guo Xiang Tancaeb035b61f5
diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6index 61b9a527d76..e5206b4055a 100644--- a/app/assets/javascripts/discourse/controllers/topic.js.es6+++ b/app/assets/javascripts/discourse/controllers/topic.js.es6@@ -1301,7 +1301,7 @@ export default Ember.Controller.extend(bufferedProperty("model"), {if ($post.length === 0 || isElementInViewport($post)) return;- $("body").animate({ scrollTop: $post.offset().top }, 1000);+ $("html, body").animate({ scrollTop: $post.offset().top }, 1000);}, 500),unsubscribe() {