Cocoa: fix typos

This commit is contained in:
rich2014 2023-08-02 18:22:03 +08:00
parent 6e6941f2f0
commit aeb8dbd099

View File

@ -492,11 +492,11 @@ begin
PtInClient.x := Round({PtInBounds.x - }pt.x - cr.Left);
PtInClient.y := Round({PtInBounds.y - }pt.y - cr.Top);
// child ctrls need not LayoutDelta,
// child ctrls need not LayoutDelta
cr := NSView(Owner).lclGetFrameToLayoutDelta;
PtForChildCtrls := PtInClient;
PtForChildCtrls.X := PtForChildCtrls.X + cr.Left;
PtForChildCtrls.Y := PtForChildCtrls.Y + cr.Top;
PtForChildCtrls.x := PtForChildCtrls.x + cr.Left;
PtForChildCtrls.y := PtForChildCtrls.y + cr.Top;
es := NSView(Owner).enclosingScrollView;
if Assigned(es) and (es.documentView = NSView(Owner)) then begin