FIX: Scroll issue on Firefox when approaching the top post

This commit is contained in:
Robin Ward 2014-01-10 11:03:23 -05:00
parent 5d16dcbf8b
commit a37acd39a0

View file

@ -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