Simplify mouse input handling check in BakgroundWidget

Make it the same as in `ContainerWidget`.
This commit is contained in:
Ivaylo Draganov
2024-09-27 17:35:09 +03:00
committed by Gustas
parent 6bcfc20533
commit a44e956ed9

View File

@@ -27,10 +27,7 @@ namespace OpenRA.Mods.Common.Widgets
public override bool HandleMouseInput(MouseInput mi)
{
if (ClickThrough || !RenderBounds.Contains(mi.Location))
return false;
return true;
return !ClickThrough && EventBounds.Contains(mi.Location);
}
protected BackgroundWidget(BackgroundWidget other)