7

I am using Ubuntu GNOME 14.04 which includes GNOME 3.10.

I would like to change the default method / action xwindows takes when I click on a scrollbar above or below the slider.

Currently it moves to the position in the file / object that corresponds to the point on the slider where you clicked. IMHO, this makes the slider button redundant.

I would prefer that the window behave as though I have hit page up or page down on my keyboard.

LambdaFox
  • 71
  • 1
  • 5
  • 1
    People looking for a way https://developer.gnome.org/gtk3/stable/GtkScrollbar.html should help. – Braiam Jan 31 '15 at 15:23
  • 2
    For what it's worth, _right-clicking_ on the scroll bar has the old behaviour of scrolling one page up or down. – mustaccio Oct 25 '16 at 22:34

1 Answers1

6

The setting you're looking for is gtk-primary-button-warps-slider:

Whether a click in a GtkRange trough should scroll to the click position or scroll by a single page in the respective direction.

Flags: Read / Write

Default value: TRUE

TRUE means "scroll to the click position" and FALSE means "scroll by a single page".

To change the setting, edit ~/.config/gtk-3.0/settings.ini and add the following line:

gtk-primary-button-warps-slider=0

Restart your GTK3 apps to pick up the change.

FYI: I've encountered some flaky behavior in scrolling after changing the setting, but I don't know if it was the setting or the app itself.

don_crissti
  • 79,330
  • 30
  • 216
  • 245
user1201210
  • 161
  • 1
  • 3
  • 1
    Thanks for this. But I needed another detail to get this working for me, and it's not obvious from the answer or the linked documentation page: the line needs to be in a section with the heading `[Settings]` – Michael Burr Aug 15 '17 at 18:36