Fixed wire control hit test to work properly when the UI is scaled (#5181) (#5182)

This commit is contained in:
Antoine Chavasse
2021-11-07 00:58:24 +01:00
committed by GitHub
parent 4cbc84f02b
commit a4bdfd2b52

View File

@@ -370,7 +370,7 @@ namespace Content.Client.Wires.UI
return;
}
if (args.RelativePixelPosition.Y > 20 && args.RelativePixelPosition.Y < 60)
if (args.RelativePosition.Y > 20 && args.RelativePosition.Y < 60)
{
WireClicked?.Invoke();
}