mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 14:09:26 +02:00
synedit: fix scroll direction
git-svn-id: trunk@14325 -
This commit is contained in:
parent
975886c991
commit
4a8708a5ad
@ -5618,7 +5618,7 @@ begin
|
||||
OldTopLine:=TopLine;
|
||||
fTopLine := Value;
|
||||
UpdateScrollBars;
|
||||
Delta := TopLine - OldTopLine;
|
||||
Delta := OldTopLine - TopLine;
|
||||
if Abs(Delta) < fLinesInWindow then
|
||||
begin
|
||||
// TODO: SW_SMOOTHSCROLL --> can't get it work
|
||||
@ -5680,7 +5680,9 @@ begin
|
||||
NewCaretXY.Y := MaxY;
|
||||
end;
|
||||
if CompareCarets(CaretXY,NewCaretXY)<>0 then
|
||||
begin
|
||||
CaretXY:=NewCaretXY;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomSynEdit.MoveCaretIgnoreEOL(const NewCaret: TPoint);
|
||||
|
Loading…
Reference in New Issue
Block a user