Turn off smooth scrolling in GTK3

On a default Ubuntu 16.04 (xenial) installation, GTK3 applications (which include most of the default GUI applications) have smooth scrolling activated. How do I disable it?

For example, in Gedit, pressing PageUp/PageDown causes the text to scroll one pixel line at a time until it settles to its final position one page further up/down. The same behavior occurs in the file selection dialog box, in Nautilus, etc. How do I turn off smooth scrolling, i.e. how do I make the PageUp/PageDown keys show the previous/next page immediately?


Edit the file ~/.config/gtk-3.0/settings.ini to contain the following lines:

[Settings]
gtk-enable-animations=0

If the file doesn't exist, create it. If the file already exists and already has a [Settings] section, add gtk-enable-animations=0 in this section.

Thanks to DK Bose for suggesting .config/gtk-3.0/settings.ini and to pm-b for suggesting the option name enable-animations (I was looking for “scroll”).

You don't need to reboot or to log out, but you do need to restart the application.


I solved this by disabling animations in the gnome shell. Disabling animations will disable all animations. This setting can be changed in many different ways. For the change to take effect in gedit, don't forget to restart gedit.

Using gsettings (command line)

Open a terminal and run this command:

gsettings set org.gnome.desktop.interface enable-animations false

Using dconf-editor (GUI)

From the start screen, navigate to /org/gnome/desktop/interface/enable-animations

and set it to false.


Using gnome-tweak-tool (GUI)

Open gnome-tweaks. In the appearance tab, set the following option to false: animations