termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.96k stars 301 forks source link

chromium touchscreen selection not working #350

Closed kde-yyds closed 1 year ago

kde-yyds commented 1 year ago

https://github.com/termux/termux-x11/assets/106876912/ab1bd7fe-9a22-4ea5-9994-0513acc8749a

twaik commented 1 year ago

In touchscreen mode touch events are deliverewd as is, termux-x11 is not responsible for handling events.

kde-yyds commented 1 year ago

but this works on a computer with a physical touch screen

kde-yyds commented 1 year ago

so maybe it's still an issue of termux-x11's touchscreen direct input

kde-yyds commented 1 year ago

Screenshot_20230615_214224_com.termux.x11.jpg It's strange that this feature in qtwebengine works fine.

https://github.com/termux/termux-x11/assets/106876912/80968465-6d0d-48eb-98d3-28487ffe7ff6

mio-19 commented 4 months ago

so maybe it's still an issue of termux-x11's touchscreen direct input

I encountered the same issue.

mio-19 commented 4 months ago

Is there some tool to record mouse/touch events? I want to compare termux-x11 direct input and a touchscreen on a linux device.

RalfWerner commented 4 months ago

I want to compare termux-X11 direct input and a touchscreen on a linux device.

@mio-19 mouse and touch events are different. The mouse is independent of the touchMode of X11, while Direct mode with fingers triggers the Touch-Screen Generic Events. A recording can be switched on via the Dev options of the Android settings. Here is a video of how to do it with a four finger tap-move-release gesture.

https://github.com/termux/termux-x11/assets/45426380/378480ba-9034-4f14-a360-8a5848cc92fb

To represent this by Termux-X11 (XServer), you need an XClient that can process these generic events. That could look so. You've a touchscreen on your linux device and obviously an XClient for comparison there. If you can install it in Termux, I would also be interested in it.