input: for one bump of the mousewheel scroll two lines, not three

Scrolling three lines at a time goes too fast: it feels erratic.
Whereas scrolling two lines at a time still feels like scrolling.
This commit is contained in:
Benno Schulenberg 2024-02-25 16:14:44 +01:00
parent 4673e709b2
commit 3d727266c3

View File

@ -1686,9 +1686,9 @@ int get_mouseinput(int *mouse_y, int *mouse_x, bool allow_shortcuts)
if (in_middle || (in_footer && *mouse_y == 0)) {
int keycode = (event.bstate & BUTTON4_PRESSED) ? ALT_UP : ALT_DOWN;
/* One roll of the mouse wheel should scroll three lines. */
for (int count = 3; count > 0; count--)
put_back(keycode);
/* One bump of the mouse wheel should scroll two lines. */
put_back(keycode);
put_back(keycode);
return 1;
} else