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?
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:
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 tofalse
: animationsEdit the file
~/.config/gtk-3.0/settings.ini
to contain the following lines:If the file doesn't exist, create it. If the file already exists and already has a
[Settings]
section, addgtk-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 nameenable-animations
(I was looking for “scroll”).You don't need to reboot or to log out, but you do need to restart the application.
Unfortunately, Gnome apps have made this MAJOR mess on Ubuntu 18.04. The correct setting depends on the Desktop environment you use. For Gnome 3.x it seems that the way to disable smooth scroll is to run
which disables other animations as well.
If you're running MATE you have to use different key