-
Notifications
You must be signed in to change notification settings - Fork 87
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
[EPUB reflow] We can move the offset by pinching the page #146
Comments
Still happening, but not a major issue. |
I took a look while working on #143, and I think it's actually a useful feature/bug. This allows to stretch a text selection across two pages, by dragging it. So I didn't fix it, however once the selection is dismissed, the page will be snapped back into place. |
Hi @mickael-menu, I'm trying to not allow user to text select across two pages, how i can disable this selection, could you help me? |
Try with the code from #143 (branch |
@mickael-menu When i select one word at top area of page and try to select something above, this bug happens. |
We got some users that reported this bug but I was never able to reproduce it myself, so I'm not sure what's going on. I wonder if the |
I put some breakpoints and |
Thanks, let me know if you need some help navigating the code. I believe the selection dragging events might be handled here: kotlin-toolkit/readium/navigator/src/main/java/org/readium/r2/navigator/R2WebView.kt Line 692 in 7a885b1
|
I put some breakpoints and logs and unfortunately when I try to select more text to top direction, the method Could be a configuration on some javascript lib related to text selection? And one interesting fact is the bug don't happen if we try to select a word at top section and drag the text selection to bottom direction of webview page. screen-20220811-100842.mp4I'm still searching how to not allow user to text select to top direction without returning to previous page, but if you have any other ideas, please tell me. Thanks in advance. |
I'm not sure, could be an issue with a specific version of the Android System WebView too. Could you share which version you have on your device? You can find it in Settings > Apps > Android System WebView. Try updating it if it's outdated to see if it helps. |
I have check webview version and it's at last version. Could you tell me if it's possible to log or put a breakpoint inside |
The
|
We can move the offset of a page by pinching it, then dragging it in a single gesture.
@johanpoirier wrote in #166:
The text was updated successfully, but these errors were encountered: