Mouse Position issue in OSX Scrolling Window lazarus / 31-LCL ---------------------------------------------------------------------- JimKueneman · 2015-07-16 04:02 Is there anyone who is familiar enough with the LCL to help me find the issue with TScrollingWindow in OSX?  I added a bug report a long time ago with a demo but it has not been fixed yet.  I have a simple demo that easily show the problem of the mouse coordinates not being correctly calculated to hit controls within a scrolling window if the window is scrolled.  I quickly get lost in the mouse code.  It works correctly in Windwos and Linux. Thanks Jim ---------------------------------------------------------------------- zeljko · 2015-07-16 09:40 And issue number is ? ---------------------------------------------------------------------- JimKueneman · 2015-07-16 12:40 http://bugs.freepascal.org/view.php?id=24279 Jim ---------------------------------------------------------------------- JimKueneman · 2015-07-18 18:07 3 Days later…. Okay I have finally figured it out and it is difficult to explain... There were compounding problems with 1) Scrollbar code 2) TCarbonCustomControl.GetInfo I will start with the GetInfo function: Code: [Select]procedure TCarbonCustomControl.GetInfo(out AImageSize, AViewSize, ALineSize: HISize;   out AOrigin: HIPoint); var   C: TRect; begin   // modify coordinates to fit real page size   c := LCLObject.BoundsRect;    <<<<<<<<<<<<<<<< vertical scrollbar will be shown     ClientW:=VertScrollBar.ClientSizeWithBar;   end;   if HorzScrollBar.IsScrollBarVisible then   begin // horizontal does not fit -> horizontal scrollbar will be shown     ClientH:=HorzScrollBar.ClientSizeWithBar;     if VertScrollBar.IsScrollBarVisible then     begin // vertical does not fit, because of the other scrollbar -> vertical scrollbar will be shown too       ClientW:=VertScrollBar.ClientSizeWithBar;     end;   end;     // JDK  { if VertScrollBar.Range > ClientH then   begin     // vertical does not fit -> vertical scrollbar will be shown     ClientW:=VertScrollBar.ClientSizeWithBar;   end;   if HorzScrollBar.Range > ClientW then   begin     // horizontal does not fit -> horizontal scrollbar will be shown     ClientH:=HorzScrollBar.ClientSizeWithBar;     if VertScrollBar.Range > ClientH then     begin       // vertical does not fit, because of the other scrollbar       // -> vertical scrollbar will be shown too       ClientW:=VertScrollBar.ClientSizeWithBar;     end;   end;  }  Again, expert opinions on this are welcome. Lastly how can I submit this bug fixes for consideration the next release? Jim