aboutsummaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-10-25 17:39:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-10-27 15:09:26 +0000
commit0900d01ec9fce2e64384ef27111fe1a4d9d45068 (patch)
treeb4deeb6048a15d72b9b70def7a7765cedec28b0e /commands.c
parentMerge branch 'noop-key-binding' (diff)
input: clean up mouse scroll handling
* Allow scrolling on the normal (non-alt) screen, when application is grabbing the mouse (when user presses Shift). * Use term_mouse_grabbed() instead of explicitly checking for MOUSE_NONE tracking. * Remove mouse tracking check from cmd_scrollback_{up,down}. Caller is expected to have done the check. * Don’t scroll down on mouse wheel tilt events.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/commands.c b/commands.c
index e7dafdfc..4b0306aa 100644
--- a/commands.c
+++ b/commands.c
@@ -18,9 +18,6 @@ cmd_scrollback_up(struct terminal *term, int rows)
if (urls_mode_is_active(term))
return;
- if (term->mouse_tracking != MOUSE_NONE)
- return;
-
rows = min(rows, term->rows);
xassert(term->grid->offset >= 0);
@@ -98,9 +95,6 @@ cmd_scrollback_down(struct terminal *term, int rows)
if (urls_mode_is_active(term))
return;
- if (term->mouse_tracking != MOUSE_NONE)
- return;
-
if (term->grid->view == term->grid->offset)
return;