13

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.

nu-bo
  • 391
  • 2
  • 10

1 Answers1

16

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
nu-bo
  • 391
  • 2
  • 10