Cocoa: keep the precision of getting and setting ScrollBar consistent

This commit is contained in:
rich2014 2024-02-15 23:49:12 +08:00
parent 5a7b7dbf37
commit 142678cee6

View File

@ -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);