mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 15:48:03 +02:00
packagetabs: remove unneeded WMMouseWheel workaround (fixed in LCL in r50527 #916bee86f8)
git-svn-id: trunk@50824 -
This commit is contained in:
parent
3a6697bc77
commit
b285b769c4
@ -32,7 +32,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils, Types, Contnrs, Controls, SrcEditorIntf, StdCtrls, Buttons,
|
||||
ComCtrls, Forms, LazFileUtils, PackageIntf, Graphics, Menus, LazIDEIntf,
|
||||
ExtCtrls, IDEImagesIntf, LMessages, Math, Laz2_XMLCfg, IDECommands, LCLIntf,
|
||||
ExtCtrls, IDEImagesIntf, Laz2_XMLCfg, IDECommands, LCLIntf,
|
||||
IDEOptionsIntf, packagetabsstr, Clipbrd;
|
||||
|
||||
type
|
||||
@ -71,7 +71,6 @@ type
|
||||
|
||||
TPackageTabScrollBox = class(TScrollBox)
|
||||
protected
|
||||
procedure WMMouseWheel(var Message: TLMMouseEvent); message LM_MOUSEWHEEL;
|
||||
procedure DoAlignControls;
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
@ -404,16 +403,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TPackageTabScrollBox.WMMouseWheel(var Message: TLMMouseEvent);
|
||||
begin
|
||||
if Mouse.WheelScrollLines > 0 then
|
||||
begin
|
||||
Message.WheelDelta := (Min(High(Message.WheelDelta), Max(Low(Message.WheelDelta), (VertScrollBar.Increment * Message.WheelDelta))) div 120) * 120;
|
||||
end;
|
||||
|
||||
inherited WMMouseWheel(Message);
|
||||
end;
|
||||
|
||||
{ TPackageTabButton }
|
||||
|
||||
constructor TPackageTabButton.Create(aOwner: TComponent);
|
||||
|
Loading…
Reference in New Issue
Block a user