From a44ec5f624d347c553d581de60dc4b690f1378c2 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub Date: Thu, 7 May 2026 12:03:41 -0600 Subject: [PATCH] Consume handled tab wheel events --- src/fe-gtk/chanview-tabs.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/fe-gtk/chanview-tabs.c b/src/fe-gtk/chanview-tabs.c index 1e6f670b..ba19aad1 100644 --- a/src/fe-gtk/chanview-tabs.c +++ b/src/fe-gtk/chanview-tabs.c @@ -304,21 +304,28 @@ tab_scroll_right_down_clicked (GtkWidget *widget, chanview *cv) static gboolean tab_scroll_cb (GtkWidget *widget, GdkEventScroll *event, gpointer cv) { + int direction = cv_scroll_direction (event); + if (prefs.hex_gui_tab_scrollchans) { - int direction = cv_scroll_direction (event); - if (direction != 0) + { mg_switch_page (1, direction); + return TRUE; + } } else { - int direction = cv_scroll_direction (event); - if (direction < 0) + { tab_scroll_left_up_clicked (widget, cv); + return TRUE; + } else if (direction > 0) + { tab_scroll_right_down_clicked (widget, cv); + return TRUE; + } } return FALSE;