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 | f2878cb7710c1b5efda08cb0d5ca77acc0877339 (patch) | |
| tree | 05fa0e1af840fef2f46035d4373a32996e8136d4 | |
| parent | 8898dd74337c8fb7ac76e157f9afee38ffbe1438 (diff) | |
| download | scintilla-mirror-f2878cb7710c1b5efda08cb0d5ca77acc0877339.tar.gz | |
Backport: Perform autoscroll when mouse on pixel just below window.
This mostly helps the curses platform where a line of text is a single 'pixel'.
Backport of changeset 8109:14e30b7917dd.
| -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 b90ed3010..a609e9996 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4839,7 +4839,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) { |
