-
Notifications
You must be signed in to change notification settings - Fork 36
Exiting selection mode doesn't work on first try #159
Comments
Implemented custom double click in cursor mover mode to fix issues with difficulty to trigger it
Implemented custom double click in cursor mover mode to fix issues with difficulty to trigger it
In Qt 5.12.4[1], Qt started checking for the distance between two clicks or taps when deciding whether a Clicked event should become a DoubleClicked event. The default distance in Qt 5.12.9 is 5 pixels horizontally or vertically from the initial click point. The double tap distance is defined as twice the double click distance[2]. We can use the DPI value of the screen to determine a likely value of .15 (3/20) of an inch for distance between click events, and .30 of an inch for touch events. These values, and most of the implementation, were taken from the Android QPA[3]. Fixes ubports/keyboard-component#159 Fixes ubports/keyboard-component#158 [1] qt/qtdeclarative@56fbc27 [2] https://github.com/qt/qtbase/blob/5.12.9/src/gui/kernel/qplatformtheme.cpp#L548-L563 [3]https://github.com/qt/qtbase/blob/v5.12.9/src/plugins/platforms/android/qandroidplatformtheme.cpp#L469
this still seems to be an issue on 03-05/2 while #158 seems fixed |
Note that this isn't a regression in OTA-16. It just happens that this was also fixed with my proposed PR 😄 |
pretty sure you have the ability to reopen @kugiigi 👀 |
I'm not sure if I can but I'm pretty sure I don't see the button to do it 😅 |
This is working fine on my Nexus 4 without the newly proposed changes. How can I verify this issue? |
You have to lift your finger after entering selection mode then swipe again. Lastly, double tap again to try exiting selection mode. |
so for brevity:
|
Yes. That all works fine here. |
weird, that doesn't work on the e5 devel 0305, I'll test on the nexus5 when I get home |
Yeah, it definitely happens on all my devices (Xperia X, Pinephone, MX4 and Nexus 5) @dobey Are you sure you lifted your finger after entering selection mode and swiped again? Double tapping shouldn't work on first try. Or maybe you already installed my PR 😄 |
Yes, I am sure. Weird, now trying again it is indeed not working. But it was working fine yesterday. 🤷 |
Since OTA 17 (RC) i have an issue, when using this form : https://media.interieur.gouv.fr/attestation-deplacement-derogatoire-covid-19/ Before, i could select and set time, first hour then minutes in a row, just using the blue "swipe to move" keyboard feature (only way to set this kind of fields on Morph/Utouch), but now, if i swipe on the right to swap from hour to minutes, or the opposite, it closes keyboard instently. And because miss swipes are easy, it closes often without even wanting to swap hours/minute. I see only this commit that could have done something to this. Edit : now switched back to OTA-17 RC and issue again. |
that mode is technically meant to allow text selection, have you tried in the gray mode (also called cursor mover mode) |
just tested, it works in the regular "not blue" mode. it somewhat flaky but it doesn't immediately dismiss the keyboard if its immediate blue in your case you can double tap to exit the blue mode |
It didn't work before in "grey" mode, that's why i used blue one, and you're right now i just tested and yes it works now too in grey, but same behavior than i described, if i swap hours/minutes, it closes keyboard. EDIT : reverted back to OTA 16 and grey mode still allow changing time (so some previous update fixed that, morph or uTouch i can't tell), and keyboard doesn't close when swaping hours/minutes. And to be clearer, when i talk about swaping hours/minutes, i talk about swiping with finger to right or left in the keyboard field, not in the website hour/minute field by touching it. |
I can replicate your issue on my Nexus 5. But I don't think it is related to this issue. The change only concerns entering/exiting selection mode. |
Well, as i followed ubports thread https://forums.ubports.com/topic/6055/ota-17-call-for-testing-companion-post?_=1620508443094 that leads to this page https://github.com/orgs/ubports/projects/26 for reporting behavior, i only saw this issue, not the one you just gave me. All i can tell is that it worked on OTA 16 but not anymore in OTA 17 :) Should i post on here https://gitlab.com/ubports/core/packaging/qtwebengine/-/merge_requests/4 or there ubports/morph-browser#468 ? |
I'd say on the morph browser issue. |
Steps to Reproduce
Expected Results
Exits selection mode
Actual Results
Double tap doesn't exit selection mode. Second double tap exits it.
The text was updated successfully, but these errors were encountered: