1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-24 15:16:33 +09:00

refactor IntersectionObserver to observe viewport in single-column mode (#12735)

This commit is contained in:
Matt Panaro 2019-12-31 15:39:25 -05:00 committed by Eugen Rochko
parent 3b3bdc7293
commit 2a5da8c961

View File

@ -210,10 +210,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 () {