diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-10-25 17:39:46 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-10-27 15:09:26 +0000 |
| commit | 0900d01ec9fce2e64384ef27111fe1a4d9d45068 (patch) | |
| tree | b4deeb6048a15d72b9b70def7a7765cedec28b0e /commands.c | |
| parent | Merge 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.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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; |
