Skip to content
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

Merged

Conversation

Android-X13
Copy link
Contributor

@Android-X13 Android-X13 commented Nov 22, 2022

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

@Android-X13
Copy link
Contributor Author

Signed the commit

@HenrikJannsen
Copy link
Collaborator

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.

@Android-X13
Copy link
Contributor Author

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).

ghost
ghost previously approved these changes Nov 29, 2022
Copy link

@ghost ghost left a 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.

@Android-X13
Copy link
Contributor Author

I'll probably need to add an OS check to exclude MacOS then, unless someone can test it there as well

@HenrikJannsen
Copy link
Collaborator

Better exclude it on OSX as there is no problem with it.

Signed-off-by: Android-X13 <76814540+Android-X13@users.noreply.github.com>
@Android-X13
Copy link
Contributor Author

OSX and everything else: excluded

Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit 397ec38 into bisq-network:master Nov 29, 2022
@ripcurlx ripcurlx added this to the v1.9.7 milestone Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mouse-wheel scrolling doesn't work well for full-pages that need scrolling
4 participants