1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-25 14:08:34 +01:00

Fixed hidden scroll bars inhibiting scrolling on their parent panel

This commit is contained in:
Ell 2024-05-29 23:34:23 +02:00
parent f499ed94a7
commit ab96e97f8e
2 changed files with 4 additions and 1 deletions

View file

@ -31,6 +31,9 @@ Additions
Improvements
- Allow scrolling panels to set height based on children with TreatSizeAsMaximum
Fixes
- Fixed hidden scroll bars inhibiting scrolling on their parent panel
## 6.3.1
No code changes

View file

@ -251,7 +251,7 @@ namespace MLEM.Ui.Elements {
var foundMe = false;
foreach (var child in this.Parent.GetChildren(regardGrandchildren: true)) {
if (foundMe) {
if (child is ScrollBar b && !b.Horizontal && b.IsMousedForScrolling(moused))
if (child is ScrollBar b && !b.IsHidden && !b.Horizontal && b.IsMousedForScrolling(moused))
return false;
} else if (child == this) {
// once we found ourselves, all subsequent children are deeper/older!