From 61343b0fef531aba457909131e8571e384dc3e48 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 17 Jan 2008 04:59:19 +0000 Subject: Bug #1873210 fix for too-fast scrolling. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index 8de5bcd15..02ca0058f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5396,11 +5396,11 @@ void Editor::ButtonMove(Point pt) { if (lineMove < 0) { lineMove = cs.DisplayFromDoc(pdoc->LinesTotal() - 1); } - ScrollTo(lineMove - LinesOnScreen() + 5); + ScrollTo(lineMove - LinesOnScreen() + 1); Redraw(); } else if (pt.y < rcClient.top) { int lineMove = cs.DisplayFromDoc(LineFromLocation(pt)); - ScrollTo(lineMove - 5); + ScrollTo(lineMove - 1); Redraw(); } EnsureCaretVisible(false, false, true); -- cgit v1.2.3