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

Reset cursor on page change or category change #111

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

f01c33
Copy link

@f01c33 f01c33 commented May 11, 2024

Hi, so this is mainly a UX decision, of course, but i think the cursor should reset to 0 on page change or category change, it just makes more sense having a nice refresh on page changes, feel free to close if it does not make much sense to you :)

@bensadeh
Copy link
Owner

Hey @f01c33 and thanks for the PR!

I think this makes sense for category change, but for the page change I like the behavior of having the cursor the same place. Would you be able to update the PR for this?

@f01c33
Copy link
Author

f01c33 commented May 20, 2024

Sure!

@f01c33
Copy link
Author

f01c33 commented May 20, 2024

Changes done @bensadeh, it wasn't working correctly inside the:

if m.categoryHasStories(nextCat){

So i changed it to be above, and now it works fine

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.

None yet

2 participants