Qt: SetScrollInfo() added missing singleStep calculation, now wheel scrolls perfectly

git-svn-id: trunk@15131 -
This commit is contained in:
zeljko 2008-05-14 08:24:09 +00:00
parent c18febb872
commit 74852c55e3

View File

@ -4272,7 +4272,10 @@ var
begin
// segfaults if we don't check Enabled property
if ScrollBar.getEnabled then
begin
ScrollBar.setPageStep(ScrollInfo.nPage);
ScrollBar.setSingleStep((ScrollBar.getPageStep div 6) + 1);
end;
end;
if (ScrollInfo.FMask and SIF_POS) <> 0 then