From cbb265a5d585a87846b52a3ed45766f7a6c95f29 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 21 Aug 2019 22:50:13 +0200 Subject: [PATCH] use the right area for the panel's hover check --- MLEM.Ui/Elements/Panel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Panel.cs b/MLEM.Ui/Elements/Panel.cs index 82712d0..3cb243c 100644 --- a/MLEM.Ui/Elements/Panel.cs +++ b/MLEM.Ui/Elements/Panel.cs @@ -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(); }