6

I would like to invert the scrolling direction so that when I scroll down (using two fingers in a downward direction) on my trackpad, the page also moves down (i.e. to content lower down).

I did this in Raspbian Jessie previously like this by editing the 10-evdev.conf file in /usr/share/X11/xorg.conf.d/.

However, Raspbian Stretch (9.x) uses libinput rather than evdev so the method above doesn't work.

6

I've figured it out!

The scrolling direction is determined by libinput - see here.

Navigate to the 40-libinput.conf file in /usr/share/X11/xorg.conf.d and change the first section as follows:

# Match on all types of devices but tablet devices and joysticks
Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "NaturalScrolling" "true" #ADD THIS LINE
EndSection
  • You will have to use sudo nano 40-libinput.conf to edit the file. – nu-bo Nov 20 '17 at 12:17

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.