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

Verticall scroll navigation and fix #200

Merged
merged 6 commits into from
Nov 24, 2022

Conversation

martinek
Copy link
Contributor

This PR changes the scrolling behavior in Continues vertical and Webtoon layouts. Instead of going to "next page", when user taps / clicks / preses key the view now scrolls 95% of its height. This makes reading webtoons much better. This fixes #162.

I have not done the complete "magic" behavior, as described in the issue. I think the "if page is visible, scroll to the top of it" (snapping) would be weird for webtoons. I tried it on some "same page size" manga and the experience is very dependant on screen size.

In future the behavior could be configurable so user can specify how much it should scroll and also if the scroll should be smooth or instant. We could also add option for the "snapping" behavior described above.

While doing this, I have refactored some behavior in both vertical and horizontal scrolling layouts and added fix for different issue. This also fixes #14. When view is scrolled all the way (either direction) the last page number is now sent as current.

@AriaMoradi AriaMoradi merged commit 7aa4d2f into Suwayomi:master Nov 24, 2022
@martinek martinek deleted the fix/reader-scrolling branch November 25, 2022 08:16
@alkumaish
Copy link

Tested and it works great. But Shift+space should go to prev page (à la PgUp) right now the shift key is ignored.
This is not really a bug because everything works as intended, It's just for the sake of consistency (to make webUI's behave like normal scrollable pages).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants