Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix timeline jumping around when new posts are inserted at the top #4619

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

connyduck
Copy link
Collaborator

This fixes a bug where the timeline would jump to the position of a previously clicked "load more" when new post are inserted at the top after swiping to refresh.

This only happens when "Reading order" is set to "Oldest first".

The problem is that updateReadingPositionForOldestFirst (which consumes the marker to which it should jump) is called from onItemRangeInserted. But onItemRangeInserted is not called everytime a "load more" is clicked, leaving the marker active, causing a jump the next time onItemRangeInserted is called.

I am not sure this fixes all cases of the various jumping bugs that have been reported recently as this was the only one I could reliably reproduce.

Related to #4493

@connyduck connyduck requested review from Tak and charlag August 18, 2024 18:14
@charlag
Copy link
Collaborator

charlag commented Aug 18, 2024

had a cursory glance

@connyduck connyduck merged commit e23686e into develop Aug 19, 2024
3 checks passed
@connyduck connyduck deleted the fix-timeline-jumping-down branch August 19, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants