IDE: Fix not showing any components on the palette on mousewheel. Issue #0030904.

git-svn-id: trunk@53350 -
This commit is contained in:
ondrej 2016-11-11 21:46:25 +00:00
parent 2a7fc4046b
commit 2c4a47b18a

View File

@ -795,10 +795,16 @@ begin
if (WheelDelta > 0) then
begin
if (PageControl.ActivePageIndex > 0) then
begin
PageControl.ActivePageIndex := PageControl.ActivePageIndex - 1;
PageControl.OnChange(PageControl);
end;
end else begin
if (PageControl.ActivePageIndex < PageControl.PageCount-1) then
begin
PageControl.ActivePageIndex := PageControl.ActivePageIndex + 1;
PageControl.OnChange(PageControl);
end;
end;
Handled := True;
end;