mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-18 09:39:43 +02:00
Qt: SetScrollInfo() added missing singleStep calculation, now wheel scrolls perfectly
git-svn-id: trunk@15131 -
This commit is contained in:
parent
c18febb872
commit
74852c55e3
@ -4272,7 +4272,10 @@ var
|
|||||||
begin
|
begin
|
||||||
// segfaults if we don't check Enabled property
|
// segfaults if we don't check Enabled property
|
||||||
if ScrollBar.getEnabled then
|
if ScrollBar.getEnabled then
|
||||||
|
begin
|
||||||
ScrollBar.setPageStep(ScrollInfo.nPage);
|
ScrollBar.setPageStep(ScrollInfo.nPage);
|
||||||
|
ScrollBar.setSingleStep((ScrollBar.getPageStep div 6) + 1);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if (ScrollInfo.FMask and SIF_POS) <> 0 then
|
if (ScrollInfo.FMask and SIF_POS) <> 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user