Commit 82df0c62 authored by Matt Panaro's avatar Matt Panaro Committed by Nathan Ladd
Browse files

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

parent 297eca0f
......@@ -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 () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment