FIX: Include small actions when determining what's on screen
This commit is contained in:
parent
81a0b25324
commit
c76e6e173e
|
@ -43,7 +43,7 @@ export default MountWidget.extend({
|
|||
|
||||
let windowTop = $w.scrollTop();
|
||||
|
||||
const $posts = this.$('article.boxed');
|
||||
const $posts = this.$('.onscreen-post');
|
||||
const viewportTop = windowTop - slack;
|
||||
const topView = findTopView($posts, viewportTop, 0, $posts.length-1);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ const icons = {
|
|||
};
|
||||
|
||||
export default createWidget('post-small-action', {
|
||||
tagName: 'div.small-action.clearfix',
|
||||
tagName: 'div.small-action.onscreen-post.clearfix',
|
||||
|
||||
html(attrs) {
|
||||
const contents = [];
|
||||
|
|
|
@ -295,7 +295,7 @@ createWidget('post-body', {
|
|||
});
|
||||
|
||||
createWidget('post-article', {
|
||||
tagName: 'article.boxed',
|
||||
tagName: 'article.boxed.onscreen-post',
|
||||
buildKey: attrs => `post-article-${attrs.id}`,
|
||||
|
||||
defaultState() {
|
||||
|
|
Loading…
Reference in New Issue