-
-
Notifications
You must be signed in to change notification settings - Fork 10.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
Question: fine-tuning the window scrollbar #7709
Comments
Since 1.90.8 scrollbar have been changed to scroll page by page when clicking outside the grab. (#7328) |
Thanks, I checked it and it definitely improves the positioning accuracy of the scrollbar :) |
scroll page works with this simple example:
However, when I try to use the same code with the ImGuiListClipper class, scrolling across the page doesn't seem to work - it scrolls more than one page:
Perhaps I misunderstand something. |
You are giving the clipper an explicit height that is too small, therefore it thinks that more lines will fit. |
It works. Thank you very much! |
Version/Branch of Dear ImGui:
1.90.6
Back-ends:
imgui_impl_XXX.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Windows 10
Full config/build information:
No response
Details:
Can you please tell me if Imgui has a function for adding “arrows” to fine-tune window scrolling?
It’s just that when there is a lot of “content” in the window, scrolling with the slider is very inaccurate - it’s difficult to position and find the desired element in the window, it constantly skips.
Of course, I completely made my own scrollbar by drawing them using ImGui::GetWindowDrawList() and setting up the logic, but this is not very convenient to use; it would be much more convenient and easier to use an already existing scrollbar with fine tuning.
The text was updated successfully, but these errors were encountered: