aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormitchell <unknown>2020-04-05 16:17:41 -0400
committermitchell <unknown>2020-04-05 16:17:41 -0400
commitdc6eedad4b32869f5b0f85e14468c642a38a6de8 (patch)
tree110fa1735b9fe0a418b1ea95bc62ac603e367186
parentcbb80f09c04b0c245e31b3c1bd327c6cdd6f9a80 (diff)
downloadscintilla-mirror-dc6eedad4b32869f5b0f85e14468c642a38a6de8.tar.gz
Enable autoscrolling when clicking and dragging the mouse to make selections.
-rw-r--r--curses/ScintillaCurses.cxx2
1 files changed, 1 insertions, 1 deletions
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)