shantanuo
shantanuo

Reputation: 32296

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.

Upvotes: 2

Views: 440

Answers (3)

shantanuo
shantanuo

Reputation: 32296

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

Upvotes: 1

Harry Suryapambagya
Harry Suryapambagya

Reputation: 23

Why do you have this duplicate configuration?

mousewheel.min_line_scroll_amount 60
mousewheel.min_line_scroll_amount: 25

If you want to perform a page down action instead of scrolling to the end, you should try reducing that value.

  • mousewheel.min_line_scroll_amount: This setting determines the minimum distance a mousewheel scroll action must move to be interpreted as a "line scroll." In this case, it's set to "60" units. A larger value means you need to scroll more for each "line" of content."

Upvotes: 0

Brogrammer
Brogrammer

Reputation: 27

Try to change the value of "general.smoothScroll.mouseWheel.durationMaxMS" to something higher than 250, like 500.

This value represents the maximum duration of the scroll animation in milliseconds.

general.smoothScroll.mouseWheel.durationMaxMS: 500

Upvotes: 1

Related Questions