mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-06-10 00:40:18 +00:00
Fix xtext wheel scroll speed handling + prefs slider
This commit is contained in:
@@ -126,6 +126,15 @@ cv_scroll_direction (GdkEventScroll *event)
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
cv_scroll_step_count (void)
|
||||
{
|
||||
int speed = prefs.hex_gui_mouse_scroll_speed;
|
||||
if (speed < 1)
|
||||
speed = 1;
|
||||
return (speed + 9) / 10;
|
||||
}
|
||||
|
||||
|
||||
/* ======= TABS ======= */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user