3

I'm having a weird issue with Firefox on Arch Linux running on a Lenovo Thinkpad L13 Yoga. I installed Firefox, and noticed that gestures on the touchpad or the touch screen do not work. I am using gnome, and all the gnome touchpad and touchscreen gestures work properly. I then added export MOZ_USE_XINPUT2=1 to profile.d and the touchscreen gestures started working on Firefox(scrolling and zooming) but the touchpad gestures still don't work. How do I fix this?

4
  • 1
    Ensure you're fully updated, BIOS and Linux. Try using xf86-input-mtrack and other advice. You could also try libinput, already installed in Wayland (which one are you using?).
    – harrymc
    Commented Aug 22, 2021 at 15:05
  • I fully updated all packages using pacman -Syu. That did not seem to change anything. I also added a MOZ_ENABLE_WAYLAND=1 env variable but in about:support, it still shows xwayland rather than wayland. I think the issue lies here. Libinput is already installed. I think the other two links you put seem irrelavant because they are for Xorg and not Wayland. Commented Aug 25, 2021 at 21:22
  • 1
    Perhaps libinput-gestures. The package libinput-gestures might exist in your repository. See example usage.
    – harrymc
    Commented Aug 26, 2021 at 8:09
  • From what the ArchWiki describes, it appears that libinput gestures is for gestures on Xorg apps that do not suport wayland. However, Firefox does support Wayland, but I am unable to enable it through the enviornment variable. Commented Aug 27, 2021 at 16:40

1 Answer 1

3

Turns out MOZ_USE_XINPUT=1 was not alone enoguh to enable full libinput gestures, as Firefox also needed wayland to be enabled. Until now, Firefox was running through XWayland. Adding MOZ_ENABLE_WAYLAND=1 was not enough to change this, but once I added GDK_BACKEND=wayland, Firefox started using Wayland as the window protocol. All touch and touchpad gestures are now working.

However, the scrolling speed on the touchpad is still really fast, and I am going to try to see how I can fix that. If anyone knows how to change it, please comment it below.

Also, if anyone has an explaination for why Firefox behaves this way, and why this isn't default behaviour, please comment that down below as well.

Thank you to those who have helped.

6
  • Is this specific to Wayland and on Xorg works out of the box? I thought this: bugzilla.mozilla.org/show_bug.cgi?id=1688717 was supposed to enable pinch zoom by default for both Wayland and Xorg. Commented Jan 17, 2022 at 14:47
  • 1
    I don't know, as I have not tested on an Xorg DE. I run GNOME, which runs on Wayland + libinput by default. It might work OOTB if I used the synaptics driver with Xorg, but as the synaptics driver is no longer updated, I prefer not to use it. Commented Jan 20, 2022 at 8:42
  • I think we have our answer here: Bug 1749174 - "Consider enabling wayland if available". Commented Feb 13, 2022 at 0:57
  • I am on Nvidia so I can't use Wayland, only Xorg. On Xorg pinch to Zoom acts a scroll wheel. However, I've occassionally triggered some kind of inverse bug where if I do the pinch in a special way, all of them accidental, it does actually zoom in and add scrollbars instead of increasing the zoom level. Commented Sep 22, 2022 at 2:30
  • Actually, I've resolved my issue. See my answer Commented Sep 22, 2022 at 3:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .