Skip to content
Snippets Groups Projects
Commit 2a5da8c9 authored by Matt Panaro's avatar Matt Panaro Committed by Eugen Rochko
Browse files

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

parent 3b3bdc72
No related branches found
No related tags found
No related merge requests found
......@@ -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 () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment