mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 14:49:07 +08:00
FIX: Don't scroll to top of post.
This commit is contained in:
parent
16fdcdfc00
commit
c4e3ab21dd
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user