Skip to content

Commit 99ac41f

Browse files
panaromumonaca
authored andcommitted
Revert "refactor IntersectionObserver to observe viewport in single-column mode (mastodon#12735)"
This reverts commit 2a5da8c.
1 parent ecd7a7e commit 99ac41f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

app/javascript/mastodon/components/scrollable_list.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,10 @@ export default class ScrollableList extends PureComponent {
212212
}
213213

214214
attachIntersectionObserver () {
215-
let nodeOptions = {
215+
this.intersectionObserverWrapper.connect({
216216
root: this.node,
217217
rootMargin: '300% 0px',
218-
};
219-
220-
this.intersectionObserverWrapper
221-
.connect(this.props.bindToDocument ? {} : nodeOptions);
218+
});
222219
}
223220

224221
detachIntersectionObserver () {

0 commit comments

Comments
 (0)