FIX: Odd scrolling
This commit is contained in:
parent
867215a915
commit
e3cc04f315
|
@ -142,7 +142,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
||||||
|
|
||||||
this.set('controllers.topic-progress.progressPosition', postStream.progressIndexOfPost(post));
|
this.set('controllers.topic-progress.progressPosition', postStream.progressIndexOfPost(post));
|
||||||
|
|
||||||
if (lastLoadedPost && lastLoadedPost === post) {
|
if (lastLoadedPost && lastLoadedPost === post && postStream.get('canAppendMore')) {
|
||||||
postStream.appendMore().then(() => refresh());
|
postStream.appendMore().then(() => refresh());
|
||||||
// show loading stuff
|
// show loading stuff
|
||||||
refresh();
|
refresh();
|
||||||
|
|
|
@ -29,7 +29,7 @@ export default class PostCooked {
|
||||||
this._fixImageSizes($html);
|
this._fixImageSizes($html);
|
||||||
this._applySearchHighlight($html);
|
this._applySearchHighlight($html);
|
||||||
|
|
||||||
// _decorators.forEach(cb => cb($html));
|
_decorators.forEach(cb => cb($html));
|
||||||
return $html[0];
|
return $html[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue