mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-19 23:04:32 +03:00
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:
parent
4673e709b2
commit
3d727266c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user