Skip to content
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

Multitouch on linux doesn't work #689

Open
Midou36O opened this issue Jun 6, 2023 · 8 comments
Open

Multitouch on linux doesn't work #689

Midou36O opened this issue Jun 6, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@Midou36O
Copy link

Midou36O commented Jun 6, 2023

Describe the bug

Using two or more fingers seems to get ignored and only a single finger is taken into account (the first one.)

To reproduce

Just use two fingers to pinch or scroll the page.

Expected behavior

Multi touch should work just fine.

Saber version

v0.12.9 (12090)

Device

  • Device: HP EliteBook x360 1030 G2
  • OS: Artix Linux x86_64
  • Destkop Environment / Window Manager: Sway (Window manager)

Anything else?

Desktop (does not work):

Kooha-2023-06-06-20-24-12.mp4

Mobile (works):

out_cut.mp4

Both are running on the latest release (at the time of writing this issue) version.

@Midou36O Midou36O added the bug Something isn't working label Jun 6, 2023
@m0byn
Copy link

m0byn commented Jun 7, 2023

Looking at the first video I can see that the lock icon on the top left is actually locked. On the contrary, the second video shows the lock icon to be unlocked. I suspect this might be the reason?

@Midou36O
Copy link
Author

Midou36O commented Jun 7, 2023

If you look closely at both videos, you would notice that the desktop recording had the padlock unlocked, and on the mobile recording the padlock was locked (but could still scroll pages using two fingers) until i realised it was locked and eventually unlocked it to zoom in.

Locked state:

Screenshot_20230607-122900_Saber

Unlocked state:

Screenshot_20230607-122835_Saber

Hope that clarifies things up.

@m0byn
Copy link

m0byn commented Jun 7, 2023

So, the issue is resolved?

@Midou36O
Copy link
Author

Midou36O commented Jun 7, 2023

Nope, this has no relation to the multitouch problem.

@adil192
Copy link
Member

adil192 commented Jun 7, 2023

@Midou36O I believe it only works on Wayland. Are you using Wayland or X11?

@Midou36O
Copy link
Author

Midou36O commented Jun 7, 2023

I'm using Wayland, to be precise i'm using Sway. I'll add that to the device list.

@Luciogi
Copy link

Luciogi commented Jun 9, 2023

For Scrolling, try using fingers , outside of page

image


Running with xwayland, pinch to zoom is working with laptop touchpad, but scrolling is broken. For scrolling I have to use double click and drag up/down outside of page area

GDK_BACKEND=x11 saber

@Midou36O
Copy link
Author

Midou36O commented Jun 9, 2023

Doesn't seem that x11 is improving anything for me, also, the side bar slide is somewhat of a workaround and doesn't solve the main problem :P

Saber under X11 using the env variable, confirmed using xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x800003 "Saber"

  Absolute upper-left X:  17
  Absolute upper-left Y:  61
  Relative upper-left X:  17
  Relative upper-left Y:  61
  Width: 934
  Height: 1002
  Depth: 24
  Visual: 0x3fe
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x800002 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +17+61  -969+61  -969-17  +17-17
  -geometry 934x1002+17-17

Video footage below, On the left saber is running under X11, on the right Eye of gnome (or image viewer according to gnome). Is zooming properly when pinching, notice how i'm moving the mouse and pinching at the same time to prove that I'm indeed using the touch screen. Saber seems to freak out when i do the same thing using the mouse, I thought this would be an X11 only issue so I tried on wayland, Second video shows saber running on Wayland and performing the same test. Notice how it has the same issue, however it seemed to zoom for a second (0:12) before continuing to freak out like X11. Hope this detailled issue clarifies things a bit more.

Kooha-2023-06-09-12-53-21.mp4
Kooha-2023-06-09-12-54-59.mp4

Update: Further testing shows that multitouch actually works but it's really buggy, it rarely registers my two fingers as a pinch.

Kooha-2023-06-09-13-04-24.mp4

If only sway had a way to digitally show the finger input :')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants