~cytrogen/masto-fe

2b98e2ecd6224ad41d38f5febd31efa7e4de316d — Claire 2 years ago 32ab474
Fix auto-loading-more when not scrolled (#27286)

1 files changed, 1 insertions(+), 1 deletions(-)

M app/javascript/mastodon/components/scrollable_list.jsx
M app/javascript/mastodon/components/scrollable_list.jsx => app/javascript/mastodon/components/scrollable_list.jsx +1 -1
@@ 78,7 78,7 @@ class ScrollableList extends PureComponent {
      const clientHeight = this.getClientHeight();
      const offset = scrollHeight - scrollTop - clientHeight;

      if (400 > offset && this.props.onLoadMore && this.props.hasMore && !this.props.isLoading) {
      if (scrollTop > 0 && offset < 400 && this.props.onLoadMore && this.props.hasMore && !this.props.isLoading) {
        this.props.onLoadMore();
      }