1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-29 15:58:33 +01:00

fixed elements' hover states being judged by their full areas

This commit is contained in:
Ellpeck 2019-09-26 19:36:15 +02:00
parent 401a89e295
commit 84d5d3ab18

View file

@ -453,7 +453,7 @@ namespace MLEM.Ui.Elements {
if (element != null) if (element != null)
return element; return element;
} }
return this.CanBeMoused && this.Area.Contains(position) ? this : null; return this.CanBeMoused && this.DisplayArea.Contains(position) ? this : null;
} }
public void AndChildren(Action<Element> action) { public void AndChildren(Action<Element> action) {