From 84d5d3ab181f6bbcb3a6cc6fb03dd5116327404d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 26 Sep 2019 19:36:15 +0200 Subject: [PATCH] fixed elements' hover states being judged by their full areas --- MLEM.Ui/Elements/Element.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Element.cs b/MLEM.Ui/Elements/Element.cs index 36b3c47..fc33673 100644 --- a/MLEM.Ui/Elements/Element.cs +++ b/MLEM.Ui/Elements/Element.cs @@ -453,7 +453,7 @@ namespace MLEM.Ui.Elements { if (element != null) return element; } - return this.CanBeMoused && this.Area.Contains(position) ? this : null; + return this.CanBeMoused && this.DisplayArea.Contains(position) ? this : null; } public void AndChildren(Action action) {