mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-05-16 13:40:18 +00:00
Consume handled tab wheel events
This commit is contained in:
@@ -304,21 +304,28 @@ tab_scroll_right_down_clicked (GtkWidget *widget, chanview *cv)
|
|||||||
static gboolean
|
static gboolean
|
||||||
tab_scroll_cb (GtkWidget *widget, GdkEventScroll *event, gpointer cv)
|
tab_scroll_cb (GtkWidget *widget, GdkEventScroll *event, gpointer cv)
|
||||||
{
|
{
|
||||||
if (prefs.hex_gui_tab_scrollchans)
|
|
||||||
{
|
|
||||||
int direction = cv_scroll_direction (event);
|
int direction = cv_scroll_direction (event);
|
||||||
|
|
||||||
|
if (prefs.hex_gui_tab_scrollchans)
|
||||||
|
{
|
||||||
if (direction != 0)
|
if (direction != 0)
|
||||||
|
{
|
||||||
mg_switch_page (1, direction);
|
mg_switch_page (1, direction);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int direction = cv_scroll_direction (event);
|
|
||||||
|
|
||||||
if (direction < 0)
|
if (direction < 0)
|
||||||
|
{
|
||||||
tab_scroll_left_up_clicked (widget, cv);
|
tab_scroll_left_up_clicked (widget, cv);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
else if (direction > 0)
|
else if (direction > 0)
|
||||||
|
{
|
||||||
tab_scroll_right_down_clicked (widget, cv);
|
tab_scroll_right_down_clicked (widget, cv);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user