Fix double scaling in canvas scalar.

This commit is contained in:
Chandler Cox
2026-01-26 20:46:49 -06:00
parent f773a0755d
commit 004e02af73

View File

@@ -449,8 +449,7 @@ namespace FlaxEngine.GUI
/// <inheritdoc />
public override bool RayCast(ref Float2 location, out Control hit)
{
var p = location / _scale;
if (RayCastChildren(ref p, out hit))
if (RayCastChildren(ref location, out hit))
return true;
return base.RayCast(ref location, out hit);
}