aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMitchell Foral <unknown>2020-04-05 08:19:49 +1000
committerMitchell Foral <unknown>2020-04-05 08:19:49 +1000
commit25cdcf3627343b1699833c2d8f5fbf76ba120bc2 (patch)
treebb33c2749526250ac7f6a1a249271c5d4c4c59a2
parent2c59dd476482188594fbfd237c68492681728df4 (diff)
downloadscintilla-mirror-25cdcf3627343b1699833c2d8f5fbf76ba120bc2.tar.gz
Perform autoscroll when mouse on pixel just below window.
This mostly helps the curses platform where a line of text is a single 'pixel'.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 17cabd065..efb360331 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4843,7 +4843,7 @@ void Editor::ButtonMoveWithModifiers(Point pt, unsigned int, int modifiers) {
// Autoscroll
const Sci::Line lineMove = DisplayFromPosition(movePos.Position());
- if (pt.y > rcClient.bottom) {
+ if (pt.y >= rcClient.bottom) {
ScrollTo(lineMove - LinesOnScreen() + 1);
Redraw();
} else if (pt.y < rcClient.top) {