FIX: Automatic scrolling in PM not working.

FIX: Automatic scrolling in PM not working.

See jquery - scrolltop with animate not working - Stack Overflow

diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6
index 61b9a52..e5206b4 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() {

GitHub sha: caeb035b