Skip to content

Commit

Permalink
Revert "Revert "refactor IntersectionObserver to observe viewport in …
Browse files Browse the repository at this point in the history
…single-column mode (mastodon#12735)""

This reverts commit 99ac41f.
  • Loading branch information
panarom authored and umonaca committed May 16, 2020
1 parent 5fb7574 commit 3175365
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/javascript/mastodon/components/scrollable_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,13 @@ export default class ScrollableList extends PureComponent {
}

attachIntersectionObserver () {
this.intersectionObserverWrapper.connect({
let nodeOptions = {
root: this.node,
rootMargin: '300% 0px',
});
};

this.intersectionObserverWrapper
.connect(this.props.bindToDocument ? {} : nodeOptions);
}

detachIntersectionObserver () {
Expand Down

0 comments on commit 3175365

Please sign in to comment.