mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 14:59:11 +02:00
fixed mouse wheel scrolling in IDE source editor under windows from Alexandre Leclerc
git-svn-id: trunk@9623 -
This commit is contained in:
parent
3744d96407
commit
ed52351960
@ -2363,8 +2363,9 @@ begin
|
||||
if Assigned(OnMouseMove) then
|
||||
OnMouseMove(Self,Shift,X,Y);
|
||||
end;
|
||||
Procedure TSourceEditor.EditorMouseWheel(Sender: TObject; Shift: TShiftState;
|
||||
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
|
||||
|
||||
procedure TSourceEditor.EditorMouseWheel(Sender: TObject; Shift: TShiftState;
|
||||
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
|
||||
begin
|
||||
// Writeln('MouseWheel in Editor');
|
||||
if Assigned(OnMouseWheel) then
|
||||
@ -5479,17 +5480,16 @@ begin
|
||||
EditorOpts.AutoToolTipExprEval)
|
||||
and Visible;
|
||||
end;
|
||||
Procedure TSourceNotebook.EditorMouseWheel(Sender: TObject; Shift: TShiftState;
|
||||
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
|
||||
|
||||
procedure TSourceNotebook.EditorMouseWheel(Sender: TObject; Shift: TShiftState;
|
||||
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
|
||||
begin
|
||||
// restart hint timer
|
||||
HideHint;
|
||||
FHintTimer.Enabled := False;
|
||||
FHintTimer.Enabled := (EditorOpts.AutoToolTipSymbTools or
|
||||
EditorOpts.AutoToolTipExprEval)
|
||||
|
||||
and Visible;
|
||||
handled:=true;
|
||||
EditorOpts.AutoToolTipExprEval) and Visible;
|
||||
//handled:=true; //The scrooling is not done: it's not handled! See TWinControl.DoMouseWheel
|
||||
end;
|
||||
|
||||
procedure TSourceNotebook.EditorMouseDown(Sender: TObject;
|
||||
|
Loading…
Reference in New Issue
Block a user