From 25cdcf3627343b1699833c2d8f5fbf76ba120bc2 Mon Sep 17 00:00:00 2001 From: Mitchell Foral Date: Sun, 5 Apr 2020 08:19:49 +1000 Subject: Perform autoscroll when mouse on pixel just below window. This mostly helps the curses platform where a line of text is a single 'pixel'. --- 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 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) { -- cgit v1.2.3