mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:17:14 +08:00
FIX: Scroll issue on Firefox when approaching the top post
This commit is contained in:
parent
5d16dcbf8b
commit
a37acd39a0
|
@ -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 New Issue
Block a user