Fix xtext wheel scroll speed handling + prefs slider

This commit is contained in:
deepend committed 2026-05-25 09:45:22 -06:00
1 parent b8e03ff6c1
commit 85b0e8f1a6
7 files changed
+50 -9

No files matched your search

+9
View File
@@ -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 ======= */