synedit: fix scroll direction

git-svn-id: trunk@14325 -
This commit is contained in:
paul 2008-02-29 18:30:09 +00:00
parent 975886c991
commit 4a8708a5ad

View File

@ -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);