aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2008-01-17 04:59:19 +0000
committernyamatongwe <unknown>2008-01-17 04:59:19 +0000
commit377ef4e77b5650130dadfc4a54877bd3ef556a3d (patch)
treea170540cc98ef9067abb5954b0bbd1cc8db67d35 /src
parent29a23b8bd154a278ffc9ad8aeb026050dacdfc7e (diff)
downloadscintilla-mirror-377ef4e77b5650130dadfc4a54877bd3ef556a3d.tar.gz
Bug #1873210 fix for too-fast scrolling.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files 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);