mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
Fixed hidden scroll bars inhibiting scrolling on their parent panel
This commit is contained in:
parent
f499ed94a7
commit
ab96e97f8e
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue