1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-10 08:30:23 +02:00

use the right area for the panel's hover check

This commit is contained in:
Ellpeck 2019-08-21 22:50:13 +02:00
parent ce42bdd61a
commit cbb265a5d5

View file

@ -108,7 +108,7 @@ namespace MLEM.Ui.Elements {
public override Element GetMousedElement() {
// 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 base.GetMousedElement();
}