From 243380c4a21dfe6f9c851d29800fdcc9d059cb65 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 20 Aug 2017 20:40:32 +0200 Subject: [PATCH] mouse: one click of the wheel should move three lines, not three pages This fixes https://savannah.gnu.org/bugs/?51802. --- src/winio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/winio.c b/src/winio.c index dea89300..0f9564c7 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1716,12 +1716,10 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts) if (in_edit || (in_bottomwin && *mouse_y == 0)) { int i; - /* One upward roll of the mouse wheel is equivalent to - * moving up three lines, and one downward roll of the mouse - * wheel is equivalent to moving down three lines. */ + /* One roll of the mouse wheel should move three lines. */ for (i = 0; i < 3; i++) unget_kbinput((mevent.bstate & BUTTON4_PRESSED) ? - KEY_PPAGE : KEY_NPAGE, FALSE); + KEY_UP : KEY_DOWN, FALSE); return 1; } else