From dc6eedad4b32869f5b0f85e14468c642a38a6de8 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 5 Apr 2020 16:17:41 -0400 Subject: Enable autoscrolling when clicking and dragging the mouse to make selections. --- curses/ScintillaCurses.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'curses') diff --git a/curses/ScintillaCurses.cxx b/curses/ScintillaCurses.cxx index 21330996e..fefaa207d 100644 --- a/curses/ScintillaCurses.cxx +++ b/curses/ScintillaCurses.cxx @@ -1457,7 +1457,7 @@ bool scintilla_send_mouse( int maxy = getmaxy(w), maxx = getmaxx(w); // Ignore most events outside the window. if ((x < begx || x > begx + maxx - 1 || y < begy || y > begy + maxy - 1) && - button != 4 && button != 5) + button != 4 && button != 5 && event != SCM_DRAG) return false; y = y - begy, x = x - begx; if (event == SCM_PRESS) -- cgit v1.2.3