Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ export default class InfiniteScroll extends Component<Props, State> {
? document.documentElement
: document.body;

// fix scrollTop is not updated,
// fix: the problem that the pull down refresh function fails when scrolling to the bottom
this.lastScrollTop = target.scrollTop;

// return immediately if the action has already been triggered,
// prevents multiple triggers.
if (this.actionTriggered) return;
Expand All @@ -324,7 +328,6 @@ export default class InfiniteScroll extends Component<Props, State> {
this.props.next && this.props.next();
}

this.lastScrollTop = target.scrollTop;
};

render() {
Expand Down