Skip to content

Commit 4eb70f2

Browse files
committed
Simplify mouse input handling check in BakgroundWidget
Make it the same as in `ContainerWidget`.
1 parent a9aed0d commit 4eb70f2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

OpenRA.Mods.Common/Widgets/BackgroundWidget.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ public BackgroundWidget() { }
2727

2828
public override bool HandleMouseInput(MouseInput mi)
2929
{
30-
if (ClickThrough || !RenderBounds.Contains(mi.Location))
31-
return false;
32-
33-
return true;
30+
return !ClickThrough && EventBounds.Contains(mi.Location);
3431
}
3532

3633
protected BackgroundWidget(BackgroundWidget other)

0 commit comments

Comments
 (0)