-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase mouse-wheel vertical scrolling speed in ScrollPane #6424
Increase mouse-wheel vertical scrolling speed in ScrollPane #6424
Conversation
bb33833
to
620d459
Compare
Signed the commit |
Is that tested with all OS? On OSX I don't have any issues with scroll speed and it works with accelleration. In doubt apply it only to the OS where you obsereved issues. |
It's tested on Windows and Debian (with GNOME), not on MacOS. I can exclude MacOS and maybe even Linux (although in Debian it's an issue - the motion you see in the "Before" video, which was recorded on Windows, is the same in that distro). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Ubuntu. The mouse wheel scrolling fix is a big improvement. 👍
ACK.
I'll probably need to add an OS check to exclude MacOS then, unless someone can test it there as well |
Better exclude it on OSX as there is no problem with it. |
Signed-off-by: Android-X13 <76814540+Android-X13@users.noreply.github.com>
620d459
to
53c0f0b
Compare
OSX and everything else: excluded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Fixes #3017
This PR increases the mouse-wheel scrolling "speed" inside scrollpanes (as stated in the linked issue above the scrolling is slow only inside ScrollPane but not in other components like TableView). I believe that the speed now is more or less of the degree that is usually expected universally in any kind of application.
Apparently the scroll amount in a ScrollPane depends on the content's full height, so the speed usually differs between views. If the content's height is large enough then the scrolling speed will be faster, but if the content is only slightly larger than the viewable area then the scrolling speed is slower. Example: NetworkSettingsView, where the scrolling speed is painfully slow when the window is maximized. The technique used here makes it so the speed is almost (but not exactly) equal in all scrollable views.
Initally I made this to apply only on Windows machines but after testing on a Debian GNOME system there doesn't seem to be any difference, so I removed the OS check. I have not tested this on MacOS.
I'm using a custom
BisqScrollPane
component here, an alternative way would be to use helper methods like setFasterScrollSpeed in GUIUtil. I've tested that code too so I can switch to that approach if requested.Before:
Before.mp4
After:
After.mp4