-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Scrollbar behavior change #8002
Comments
Can you clarify a bit how unsatisfactory it is? |
It's very annoying and losses functionality. To give this some background, I am using the "scroll to place clicked" (the old ImGui behavior) system-wide on my PC and I find it a great improvement over the "click to page up/down" behavior. This seems to be a general consensus, as all sorts of applications are shifting into this direction (i.e. GTK3 for 10+ years now, it's the default in KDE 6, and the default in VS Code). So, seeing ImGui go in a reverse direction, and with no switch available to change it back is a bit sad. The original issue seems to miss that there are page up/down keys, which do exactly what's requested - move the displayed content page up or down. As for the loss of functionality, I am no longer able to click on a hot-spot overlaid over the scroll bar to go directly to it. I now have to fish for the scroll bar, carefully move the mouse over it and grab it, then move it over the area I am interested in. This is much more finicky than just clicking on where I want to be. |
Probably I was too fast jumping on that bandwagon, and I understand that in particular if you have a scrollbar overlay you would like really want the old behavior. Probably we should support both, which opens two questions:
|
Where is the option for this and what it is called? it is standardized and pulled by all apps? or a per-app setting? I assume you are on Linux? If it is a standardized settings, would it make sense to attempt to set default based on settings, if they are easy/standard to access?
Effectively every application I currently use on my Windows PC does the per page scroll: Firefox, Visual Studio, Discord, Explorer, Sublime, Git Fork. So I don't know, maybe it is a Linux trend? To clarify, we will find a way to allow both behaviors, but I'm pointing this to understand what's the better default. |
While researching this I have learned that Shift+Clicking on a scrollbar in Windows always use the previous absolute-seeking behavior that you like/want. I have implemented that now as a727332 since it seems standard in Windows land. I am still open to provide an option to always enable this (still interested in your answer to the questions above). |
I guess it's a matter of question how deep you want to go with customizability. I would be fine even with a compile-time option, as that's basically the status quo.
In KDE you can find it in "General Behavior" in System Settings. It seems to control the behavior in all QT applications, as I see this in Qualculate, which is not an KDE program. I don't know if it's standarized. Probably it's the usual jumble of per-toolkit config dot files. In VS Code this is controlled by |
In addition to shift+click support (scrolls to the clicked location), I have added with fb41046 a new setting This is only used by the Scrollbar widget so you can technically alter it temporarily for a specific window if you need. let me know if that works for you! |
It seems to be working all right, thanks! |
Version/Branch of Dear ImGui:
Back-ends:
Compiler, OS:
Full config/build information:
No response
Details:
#7328 resulted in a change to the scrollbar behavior. The new behavior is not satisfactory. Is there a way to choose to have the old behavior instead?
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: