From f2878cb7710c1b5efda08cb0d5ca77acc0877339 Mon Sep 17 00:00:00 2001 From: Mitchell Foral Date: Sun, 5 Apr 2020 08:19:49 +1000 Subject: 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. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3