Don't copy this

This commit is contained in:
Brandon Thetford
2024-02-21 00:28:08 -07:00
parent 9adc9d431b
commit 119426e442

View File

@@ -564,13 +564,11 @@ public partial class View
return null;
}
Rectangle startFrame = start.Frame;
if (start.InternalSubviews is { Count: > 0 })
{
Point boundsOffset = start.GetBoundsOffset ();
int rx = x - (startFrame.X + boundsOffset.X);
int ry = y - (startFrame.Y + boundsOffset.Y);
int rx = x - (start.Frame.X + boundsOffset.X);
int ry = y - (start.Frame.Y + boundsOffset.Y);
for (int i = start.InternalSubviews.Count - 1; i >= 0; i--)
{
@@ -585,8 +583,8 @@ public partial class View
}
}
resultX = x - startFrame.X;
resultY = y - startFrame.Y;
resultX = x - start.Frame.X;
resultY = y - start.Frame.Y;
return start;
}