mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-18 01:20:17 +02:00
Instead of forcing mouse scroll to 1 in choose mode, scale it down
instead. Means modifier keys still increase the line count, just not as much. Based on a diff from Marcel Partap.
This commit is contained in:
@@ -752,11 +752,11 @@ tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size)
|
||||
if (b & MOUSE_MASK_SHIFT)
|
||||
m->scroll = 1;
|
||||
else
|
||||
m->scroll = 3;
|
||||
m->scroll = MOUSE_WHEEL_SCALE;
|
||||
if (b & MOUSE_MASK_META)
|
||||
m->scroll *= 3;
|
||||
m->scroll *= MOUSE_WHEEL_SCALE;
|
||||
if (b & MOUSE_MASK_CTRL)
|
||||
m->scroll *= 3;
|
||||
m->scroll *= MOUSE_WHEEL_SCALE;
|
||||
|
||||
b &= MOUSE_MASK_BUTTONS;
|
||||
if (b == 0)
|
||||
|
Reference in New Issue
Block a user