mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:39:17 +02:00
LCL: grids: fixed result of DoMouseWheelUp/Down
git-svn-id: trunk@21422 -
This commit is contained in:
parent
0f47af48bc
commit
d5a845d99d
@ -5533,7 +5533,7 @@ begin
|
|||||||
Result:=inherited DoMouseWheelDown(Shift, MousePos);
|
Result:=inherited DoMouseWheelDown(Shift, MousePos);
|
||||||
if not Result then begin
|
if not Result then begin
|
||||||
GridMouseWheel(Shift, 1);
|
GridMouseWheel(Shift, 1);
|
||||||
Result := true;
|
// keep Result=false to let the interface scroll
|
||||||
end;
|
end;
|
||||||
{$ifdef dbgScroll}DebugLn('doMouseWheelDown END');{$endif}
|
{$ifdef dbgScroll}DebugLn('doMouseWheelDown END');{$endif}
|
||||||
end;
|
end;
|
||||||
@ -5545,7 +5545,7 @@ begin
|
|||||||
Result:=inherited DoMouseWheelUp(Shift, MousePos);
|
Result:=inherited DoMouseWheelUp(Shift, MousePos);
|
||||||
if not Result then begin
|
if not Result then begin
|
||||||
GridMouseWheel(Shift, -1);
|
GridMouseWheel(Shift, -1);
|
||||||
Result := true;
|
// keep Result=false to let the interface scroll
|
||||||
end;
|
end;
|
||||||
{$ifdef dbgScroll}DebugLn('doMouseWheelUP END');{$endif}
|
{$ifdef dbgScroll}DebugLn('doMouseWheelUP END');{$endif}
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user