termux-x11
termux-x11 copied to clipboard
Touchpad right-click cancel and two-finger gesture axis inversion issue
Thank you for the new build. Most of the Galaxy Tab S8+ keyboard cover touchpad compatibility is improved in the latest build. :)
Reports additional symptoms identified during the test.
https://github.com/termux/termux-x11/assets/101167173/c6a5627b-8a05-49c5-93d1-0b858b7da1ab
1. touchpad right-click cancel If you click right on the touchpad, the click result seems to be canceled. (Video 00:09~00:20)
2. two-finger gesture axis inversion issue
Two-finger gestures confirmed the symptoms of reversing the axis when moving up, down, left, and right. (video 00:22~00:30)
log_20230808.txt The log file is here.
Your log is taken from version without some debugging lines. Try to reproduce the same movements with this: app-arm64-v8a-debug.zip And post the log again please.
@Giova445 can you please make the same thing?
I am using Xperia 5 ii and when I capture the physical mouse the X and Y are flipped
Your log is taken from version without some debugging lines. Try to reproduce the same movements with this: app-arm64-v8a-debug.zip And post the log again please.
In this APK, the symptoms of reversing the x and y axes appear again as in the past.
This is the log file. log_20230809.txt
@Rmtdi do the same thing.
I am using Xperia 5 ii and when I capture the physical mouse the X and Y are flipped
Give me some details.
After using that version apk, my problem was fixed :), and I don't know how to get the log file, this file doesn't look right, hope it helps. 1603rmtdilog.txt
@twaik here's the log, I've tested so far with the build Making termux-x11 command work on Android 14+ (termux/termux-packages… but I'm still having the two-finger axis inversion issue, tested on galaxy tab s7+
@Giova445 that is probably because I did not commit the fix. I stil can not reproduce it on my local devices and changes I made to fix it most likely break compatibility for other devices. I should test real touchpad and after that I will make some other changes...
@AlphaBs can you please check if you can fix this?
I see you've added a new option and I can't wait to try it, but I'm currently unable to use my device for about two weeks for security reasons. 😭
@hansm629 Is Touchpad right-click cancel
still reproducible? I see some code in master branch that handles it.
@twaik I'll test it out after work! We will respond within 2 hours! :)
Also you can check the new preference "transform captured pointer movements".
It is not a fix, but at least you can make your touchpad behave more predictable.
@hansm629
We will respond within 2 hours! :)
@hansm629
We will respond within 2 hours! :)
I'm going out for a while right now. I'll tell you the test results when I get back home! :)
@hansm629 this issue is the last one. Any updates?
@twaik
As of latest #597 build
If you adjust the Transform captured point movements
option, the axis of the mouse point connected via Bluetooth is reversed, but
The touchpad on the keyboard cover not applied and the mouse point axis is reversed, making it impossible to use normal gestures.
- Double tap function does not work
- Two-finger gestures must be moved in the opposite direction to work as desired.
https://github.com/termux/termux-x11/assets/101167173/328650ce-0e7b-4dc4-8b49-6cd3fa63d294
https://github.com/termux/termux-x11/assets/101167173/09829c61-9686-4bda-88a5-11cfe795bf61
@twaik Still, it seems like the touchpad right-click cancel has been fixed.
The touchpad on the keyboard cover not applied and the mouse point axis is reversed, making it impossible to use normal gestures.
I did not really understand this sentence. Can you please tell it in other words?
@twaik Oh sorry. I am not good at English, so I have to use a translator.
This means that the new Transform captured point movements
option does not apply to the touchpad of the Galaxy Tab S9 Ultra keyboard cover.
@AlphaBs how do you think, can we make DexListener's GestureDetector use standard practices for detecting gestures like single and doubletap? Currently it is limited to scrolling detection. I am not sure how exactly to deal with GestureDetector and custom Samsung flags.
I don't think that GestureDetector can handle the custom flags which Samsung touchpad produces, but I will test it later.
and 'double tap', I can't see any differences between double tap event and single tap event on my device. no special flag, no classification. it just reports normal single tap event but twice.
I encountered the same flipped pointer axis issue in Dex mode when I use my Samsung Fold 5 phone as trackpad in landscape orientation (it's normal in portrait orientation). Even worse, the left click does not work at all. If developers do not own a Samsung device or cannot reproduce, I could record log and post it. Thank you.
Recording log will not help. I must have an ability to test things in real time. I don't have the energy or the time to implement this.
I am happy to help but I'm very unfamiliar with your code. Could you give me hint on which file I should begin with for this matter?
Could you give me hint on which file I should begin with for this matter?
https://github.com/termux/termux-x11/blob/master/app/src/main/java/com/termux/x11/input/TouchInputHandler.java
@hansm629 I made a pull request at #617 to fix the issue. See if you may want to try (as I don't own a pad with physical touchpad). An automatically built APK is available on the github action: https://github.com/termux/termux-x11/actions/runs/8864550086.
You will want to choose Automatic (for touchpad)
under Transform captured point movements
option.
@knyipab I tested the apk you build!
I set it to automatic.
The touchpad of the Galaxy Tab S9 Ultra keyboard cover is not inverted. Right click, left click, gestures, etc. all work well.
but Touchpad related There is a symptom of returning to Android Home when an event occurs.
https://github.com/termux/termux-x11/assets/101167173/53335f42-df00-462d-91a9-049fdf98ce7d
Please check~