Using two-fingered scrolling on the trackpad has become second nature to me as a former user of OS X.

I made the switch recently to Ubuntu 18.04 and am surprised to find how difficult two-fingered scrolling is here.

If you find yourself in a box which scrolls horizontally such as this code box , or this AskUbuntu answer it becomes impossible to continue scrolling the page.

Any two-fingered movement is 'captured' by the horizontal scroll box and scrolls that box left and right, rather than scrolling the page up and down.

This is particularly acute in environments like Jupyter Notebook where boxes are regularly wider than they are tall.

I don't want to disable horizontal scrolling altogether, since it does have valid use cases. But where the box under the cursor doesn't scroll vertically, the default should be to scroll the page instead.

Do I have any options here? Seems to me like this should work out of the box.


I'm on an HP Pavilion laptop with Ubuntu 18.04.

  • Accidentally, isn't that Firefox where you see that behavior? Or is that true for other apps/browsers as well? – Hi-Angel Feb 1 at 14:09
  • @Hi-Angel Good point: This is happening in Chrome. – LondonRob Feb 1 at 14:25
  • Wow. Funny (or not), but in this case it works more correctly in Firefox than in Chrome. I can reproduce the problem in Chromium and Qutebrowser (based on the same engine), but not in Firefox. Anyway, this is a Chrome bug. From a cursory search I didn't find it reported, so you might as well be the first :) – Hi-Angel Feb 1 at 14:36
  • To clarify about Firefox: they make scroll to stick to vertical or horizontal axis, which is okay though, that was just a thought about what could you've been seeing. But they don't make it "stuck", i.e. there shouldn't be a problem with that. – Hi-Angel Feb 1 at 14:39

Your Answer

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

Browse other questions tagged or ask your own question.