mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 17:59:59 +02:00
IDE: Fix not showing any components on the palette on mousewheel. Issue #0030904.
git-svn-id: trunk@53350 -
This commit is contained in:
parent
2a7fc4046b
commit
2c4a47b18a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user