-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat: add option to disable horizontal swiping when scroll is true. #624
feat: add option to disable horizontal swiping when scroll is true. #624
Conversation
readium/navigator/src/main/java/org/readium/r2/navigator/epub/EpubNavigatorViewModel.kt
Outdated
Show resolved
Hide resolved
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.
Thanks for contributing this @tm-bookshop!
readium/navigator/src/main/java/org/readium/r2/navigator/R2BasicWebView.kt
Outdated
Show resolved
Hide resolved
readium/navigator/src/main/java/org/readium/r2/navigator/epub/EpubNavigatorViewModel.kt
Outdated
Show resolved
Hide resolved
The name |
Fair point @qnga , I thought about "swipe" initially but thought that was also confusing. Swipes can be up/down or left/right and this only impacts left/right. disclaimer: my understanding of this repo is not very deep. The reason I chose "pagination" is because it seemed to fit best with "resource paging" (via the R2ViewPager). I'm not really attached to the name though, so happy to with whatever the reviewers land on. Maybe something like "scrollModeDisableSwipeResourcePaging" if we want to get real verbose? |
@tm-bookshop For the sake of consistency, I suggest using the same name as the one in the Swift toolkit: |
@mickael-menu , done |
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 @tm-bookshop 🙏
Ha, I made some changes and also fixed the lint but I can't push it to your fork. Could you enable "Edit from maintainers" in your PR? Thanks |
Alternatively, here's the patch to apply |
@mickael-menu diff applied, thank you. I think the "Edit from maintainers" option might be disabled because I'm on an Enterprise github account |
I'm looking to add the equivalent functionality that was added here: readium/swift-toolkit#531