mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 02:59:19 +02:00
Cocoa: keep the precision of getting and setting ScrollBar consistent
This commit is contained in:
parent
5a7b7dbf37
commit
142678cee6
@ -905,7 +905,7 @@ end;
|
||||
|
||||
function TCocoaScrollBar.lclPos: Integer;
|
||||
begin
|
||||
Result:=round( floatValue * (maxint-minInt-pageInt)) + minInt;
|
||||
Result:=round( doubleValue * (maxint-minInt-pageInt)) + minInt;
|
||||
end;
|
||||
|
||||
procedure TCocoaScrollBar.lclSetPos(aPos: integer);
|
||||
|
Loading…
Reference in New Issue
Block a user