20

In Firefox, swiping on the touch screen results in selecting text, instead of scrolling (like on an iPad). Is it possible to change the behaviour, so that the touch screen can be used to scroll, while the mouse can be used to select text?

In Chrome, the behaviour is as expected (swipe to scroll, (mouse)drag to select).

I'm using Firefox 50.0 on Linux Mint 18 (based on Ubuntu 16.04). I have dom.w3c_touch_events.enabled set to 2, setting it to 1 does not help either.

Thanks for any help!

0
22

I finally found a solution: start firefox with:

env MOZ_USE_XINPUT2=1 firefox

This enables touch-scrolling for me. Pinch-to-zoom does not work for regular web pages, but it does work on some selected web pages such as Google Maps or OpenStreetMap.

6
12
  1. Edit /etc/security/pam_env.conf and add this line:

    MOZ_USE_XINPUT2 DEFAULT=1
    
  2. reboot

see https://askubuntu.com/a/994483/34298

3
  • thanks, this is the only that worked for me for firefox 70 – Daniel Pérez Oct 27 '19 at 20:03
  • 1
    super! Thanks! I can confirm this works on Xubuntu 20.04 on a T460s Thinkpad. – Vlad May 25 '20 at 13:12
  • 1
    Thanks! I confirm this works on Ubuntu 20.04 on a T440 Thinkpad. – eigenfield Aug 13 '20 at 5:53
0

With the latest Firefox 84.0.2 it works for scrolling without the risk of getting zoom while scrolling for both vertical and horizontal movements. Zoom works well on most pages with finger/thumb pinch/expand including Google Maps. Select is now activated, as on a mobile, by touch for a second or so then using the select markers. Touch and hold the selection to get the context menu for copy and cut/paste if text is editable. Better functionality than Chrome where the select markers cannot be adjusted from a single word selection!

My screen was detected as a "Wacom 5113 finger" under KDE Plasma 5.2 Manjaro/Arch Linux. I set KDE Wacom touch control panel "gestures off" otherwise weird things start happening on scroll.

Simply edit /etc/security/pam_env.conf and add MOZ_USE_XINPUT2 DEFAULT=1 then reboot.

The only loss seems to be drag items do not drag with finger input but will still work by mouse/touchpad.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.