mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
use the right area for the panel's hover check
This commit is contained in:
parent
ce42bdd61a
commit
cbb265a5d5
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ namespace MLEM.Ui.Elements {
|
||||||
|
|
||||||
public override Element GetMousedElement() {
|
public override Element GetMousedElement() {
|
||||||
// if overflow is handled, don't propagate mouse checks to hidden children
|
// if overflow is handled, don't propagate mouse checks to hidden children
|
||||||
if (this.scrollOverflow && !this.Area.Contains(this.MousePos))
|
if (this.scrollOverflow && !this.GetRenderTargetArea().Contains(this.MousePos))
|
||||||
return null;
|
return null;
|
||||||
return base.GetMousedElement();
|
return base.GetMousedElement();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue