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

th-downstream
Matt Panaro 5 years ago committed by Eugen Rochko
parent f0cca7a79f
commit 7930f51fac

@ -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 () {

Loading…
Cancel
Save