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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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();
}