mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 01:05:00 +00: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;
|
if ($post.length === 0 || isElementInViewport($post)) return;
|
||||||
|
|
||||||
$('body').animate({ scrollTop: $post.offset().top - $post.height() }, 1000);
|
$('body').animate({ scrollTop: $post.offset().top }, 1000);
|
||||||
}, 500),
|
}, 500),
|
||||||
|
|
||||||
unsubscribe() {
|
unsubscribe() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user