-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add "mark post on scroll" option. #176
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
Conversation
Handle cases where entire pages in feed are either filtered out or read.
jwr1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While testing, I enabled the two new settings and went back to the feed and waited for a second (expecting to see the posts on screen to be marked as read), but nothing happened. I also tried scrolling down slowly to see if that would do something, but it did not.
Am I misinterpreting what this setting does? Or am I doing something wrong?
I'll do a more thorough review once I can get it working.
Fix not marking posts as read when scrolling with scroll wheel.
|
Posts are marked as read when they are scrolled up and offscreen. There was a bug where posts weren't marked as read when scrolling with the scroll wheel on desktop but that should be fixed now. |
jwr1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, it looks great!
This PR adds options to mark posts read on scroll. It also adds some logic to handle cases when multiple pages of read posts are encountered. When fetching a new page in the feed, if the page is empty due to all the posts being filtered out or read then it will try to read another page. If this page is also empty then it will treat it as reaching the end of recent posts and notify the user they have "caught up" on recent posts and ask if they want to try loading older posts. This is likely to only happen on less busy feeds such as in magazine feeds or the subscribed microblog feed.