Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Save the reading position if no post is fully visible (#941)
Previous code saved the reading position of a fully visible status. But there are situations where no status is fully visible. 1. The user is in the middle of viewing a status longer than the screen height, and the top/bottom of the status are off the top/bottom of the screen. 2. The user has scrolled between two statuses. Collectively they are longer than the screen height, and the top of one status is off the top of the screen and the bottom of the other status is off the bottom of the screen. In both cases the user's reading position was not saved. In these situations use the ID of the status closest to the bottom of the screen, even if not fully visible. This should ensure the user never missing anything. Fixes #936
- Loading branch information