FIX: Don't scroll to top of post.

This commit is contained in:
Guo Xiang Tan 2016-11-16 15:08:18 +08:00
parent 16fdcdfc00
commit c4e3ab21dd
1 changed files with 1 additions and 1 deletions

View File

@ -914,7 +914,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
if ($post.length === 0 || isElementInViewport($post)) return;
$('body').animate({ scrollTop: $post.offset().top - $post.height() }, 1000);
$('body').animate({ scrollTop: $post.offset().top }, 1000);
}, 500),
unsubscribe() {