mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Scroll issue on Firefox when approaching the top post
This commit is contained in:
parent
5d16dcbf8b
commit
a37acd39a0
1 changed files with 2 additions and 0 deletions
|
@ -524,6 +524,8 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
|
|||
|
||||
this.set('currentPost', post.get('post_number'));
|
||||
|
||||
if (post.get('post_number') === 1) { return; }
|
||||
|
||||
if (firstLoadedPost && firstLoadedPost === post) {
|
||||
// Note: jQuery shouldn't be done in a controller, but how else can we
|
||||
// trigger a scroll after a promise resolves in a controller? We need
|
||||
|
|
Loading…
Reference in a new issue