20

Using Firefox quantum 57 and Ubuntu 17.10, I am unable to scroll a web page by touching the screen and sliding the page. However this works in Chrome browser.

How to make touch-screen scrolling work in Firefox Quantum?

29

The same solution for Firefox 50 and Ubuntu 16.xx still works for Firefox Quantum 57 and Ubuntu 17.10: Ubuntu 16 and touchscreen scrolling in FireFox

The solution is to launch firefox using:

env MOZ_USE_XINPUT2=1 firefox

You can make this permanent by modifying the launcher using the following:

sudo sed -i "s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g" /usr/share/applications/firefox.desktop

To undo this change, use:

sudo sed -i "s|Exec=env MOZ_USE_XINPUT2=1 |Exec=|g" /usr/share/applications/firefox.desktop

Comparing touch scrolling in Firefox Quantum, using this solution. with touch scrolling in Chrome:

  • Scrolling is one finger only; two finger scrolling causes the web page to zoom. This is different from Chrome, where you can scroll using two fingers, but still pinch to zoom or un-zoom.
  • You can only scroll vertically or horizontally, depending on which direction your initial motion is in; this is different from Chrome, where you can scroll horizontally or vertically (or in circles) without lifting your finger(s).
8
  • YOU ARE A GOD PJ!!! I've been searching for how to do that for 2 months now and using half baked extensions for touch dragging that really didn't work that well. Funny thing is that I came across this answer while searching for something completely different... Thanks! Jan 22 '18 at 22:45
  • After a bit of testing, it seems to be too unstable to be usable, probably why it's still off by default. It works great at first but as soon as you long click to select text, it makes a context menu popup and things turn really buggy after that. Ah well. Probably a work in progress. Jan 22 '18 at 23:25
  • @thebunnyrules I think I'm having the same problem as you, check out bugzilla.mozilla.org/show_bug.cgi?id=1451587 if you have the chance. Apr 5 '18 at 1:12
  • @blendmaster When I use FF wayland, the instability goes away. The popup menu still clashes with caret but a double tap can be used instead of a long press to call it. For X11, I just disabled long press for context menu as a temp solution. I can tell you how to do so if you know how to compile ff. Apr 9 '18 at 23:43
  • 1
    Ok so, when you extract the source, find: <mozsource>/gfx/thebes/gfxPrefs.h . Open that file and look for ui.click_hold_context_menus.delay ( the full line is DECL_GFX_PREF(Live, "ui.click_hold_context_menus.delay", UiClickHoldContextMenusDelay, int32_t, 500); ) You want to change that 500 at the very end to 9999 (that's 500ms of delay to 10 second). That's it. You won't have a context menu anymore but at least touch will be stable in X11. Once you get touch working, I'd really recommend the Tablet Gestures addon, it puts ff on parity with chrome for touch at that point. Apr 22 '18 at 3:28

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