diff options
author | Mitchell Foral <unknown> | 2020-04-05 08:19:49 +1000 |
---|---|---|
committer | Mitchell Foral <unknown> | 2020-04-05 08:19:49 +1000 |
commit | 25cdcf3627343b1699833c2d8f5fbf76ba120bc2 (patch) | |
tree | bb33c2749526250ac7f6a1a249271c5d4c4c59a2 | |
parent | 2c59dd476482188594fbfd237c68492681728df4 (diff) | |
download | scintilla-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.cxx | 2 |
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) { |