Skip to content

Cosmetic change in the Scrollbar code - #388

Merged
texus merged 3 commits into
texus:1.xfrom
M-II-R:1.x
Jul 21, 2026
Merged

Cosmetic change in the Scrollbar code#388
texus merged 3 commits into
texus:1.xfrom
M-II-R:1.x

Conversation

@M-II-R

@M-II-R M-II-R commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

I believe the Scrollbar would look a bit better if it were drawn as hovered, even if the mouse is outside it, as it is with the Slider now, so I made a small change to Scrollbar.cpp. The code is not identical to that of Slider: changes affect only the Scrollbar::draw(...) method. It seems like these changes don't break anything (I have checked the behavior of an example program manually). I hope it can be useful.

M-II-R added 3 commits July 21, 2026 12:17
Now Scrollbar checks if it's hovered like it's done by Slider.
Removed previous changes; now using a different approach to drawing the Scrollbar.
@texus
texus merged commit 8e6283b into texus:1.x Jul 21, 2026
16 checks passed
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.

2 participants