mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-26 10:19:22 +01:00
fixed panel element detection being incorrect if scrolling overflow is enabled
This commit is contained in:
parent
bb596c91ff
commit
f6c4d83775
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ namespace MLEM.Ui.Elements {
|
|||
public override Element GetElementUnderPos(Vector2 position) {
|
||||
// if overflow is handled, don't propagate mouse checks to hidden children
|
||||
if (this.scrollOverflow && !this.GetRenderTargetArea().Contains(position))
|
||||
return null;
|
||||
return !this.IsHidden && this.CanBeMoused && this.DisplayArea.Contains(position) ? this : null;
|
||||
return base.GetElementUnderPos(position);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue