Multitouch seems to be working fine on Chromium out of the box, but not on Firefox. On Chromium, dragging a finger up or down the screen scrolls the screen as expected, but on Firefox, that gesture seems to be highlighting text. How can I get Firefox to play nice with multitouch gestures?
I'm running Ubuntu 14.04 on a Lenovo Yoga 2 11" convertible laptop.
Edit: I read the page here which says that touch capability is present but disabled in FF. But enabling them and restarting doesn't seem to have any effect--dragging one's finger across the screen still only selects text.
On Xubuntu 16.04 with Firefox 50, I got it working by enabling e10s and setting the env-var
MOZ_USE_XINPUT2=1
. In detail:Enable e10s/Multiprocess. If you're running Firefox 57 or higher, it should be enabled already. Otherwise, you may have to disable a bunch of addons, and possibly force enable it.
about:support
if Multiprocess is on. If you need to force-enable, just open about:config, right-click and enter a newboolean
value with the namebrowser.tabs.remote.force-enable
; then restart FF and checkabout:support
again.Exit FF, and start it from the command-line with
MOZ_USE_XINPUT2=1 /usr/bin/firefox
.Now you can test https://www.paulirish.com/demo/multi and scroll with one finger.
Source: https://support.mozilla.org/en-US/questions/1091627
Firefox doesn't yet support multitouch on X11/Linux. At present, work is underway on upgrading from GTK+ 2 to GTK+ 3 which I believe has landed in Nightly and Aurora/Developer Edition. There's a bug tracking the GTK upgrade as well as a bug for touch event support. The overall bug for multitouch support on Linux appears to be 711711 which depends on the bugs mentioned above.
"Grab and drag" extension for Firefox did the trick for me, allowing at least for scrolling without selecting text. Gestures, however, do not seem to work.
I believe this is an issue with Firefox itself, as it does it on various OS's, and on various hardware. I know how to get it work on a MacBook multi-touch touchpad running Ubuntu, so I'll show you how to do it there, and you should be able to get it to work on your touch screen as well, as it's a setting within Firefox, not the system.
Ok, open Firefox, and enter
about:config
in the address bar, then in the filter box, putbrowser.gesture
, that will bring up all the touch gestures for Firefox. Once you have the touch settings showing, look forbrowser.gesture.pinch.in
and set the value tocmd_fullZoomReduce
, that should give you the zoom out, and to get the zoom in, look forbrowser.gesture.pinch.out
and set that value tocmd_fullZoomEnlarge
. Once you have those values set, there are 2 more settings you have to change. The next one you want to look for isbrowser.gesture.pinch.latched
by default it's set totrue
you want to change that tofalse
, then go tobrowser.gesture.pinch.threshold
, which is set to150
by default, you want to change that value to10
.That is how I got all the multi-touch features working for me, I hope it works for you as well, good luck.
In the Firefox version in Ubuntu 18.04 it works out of the box:
There seems no option to copy the selected text, but you can use Shift+F10 to get the menu and select copy there
Only add this line at end of ~/.profile and restart your session.