ubuntugtkgtk3

Scroll one page instead of jumping to the current pointer position


I changed these settings in about:config of firefox (ubuntu) to get the scrolling work like other browsers for e.g. Chrome (windows) or chromium (Ubuntu)

widget.gtk.overlay-scrollbars.enabled false 
widget.non-native-theme.gtk.scrollbar.thumb-size 1
widget.non-native-theme.scrollbar.size.override 15

general.smoothScroll true
general.smoothScroll.stopDecelerationWeighting 0.8
mousewheel.min_line_scroll_amount 60
layout.frame_rate.precise true
mousewheel.acceleration.start 1
mousewheel.min_line_scroll_amount 60
____
general.smoothScroll.mouseWheel.durationMaxMS: 250
general.smoothScroll.currentVelocityWeighting: 0
mousewheel.min_line_scroll_amount: 25

But when I click at the bottom of the screen, it scrolls to the end instead of page down.


Update:

Here’s how I tested it on Ubuntu Jammy (22.04):

I used the "Launch Demo" button available on this site:

https://kasmweb.com/kasmvnc

I was able to test both Firefox and Chrome by visiting a site like yahoo.com. In Firefox, the cursor changes to a pointer, while in Chrome, the scrolling behaves as if the "Page Down" key is being pressed.

I am not saying one way is correct and the other is wrong. The inconsistency in behavior is quite challenging for me.


Solution

  • Edit (or create) the file:

    ~/.config/gtk-3.0/settings.ini

    And add the following:

    [Settings]
    gtk-primary-button-warps-slider = false
    

    https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/The-usual-GNOME-annoyances/td-p/916379