Add scroll acceleration support to TUI (#4289)

This commit is contained in:
Tommy D. Rossi
2025-11-13 17:02:10 +01:00
committed by GitHub
parent ec3579d7cb
commit 609ab069a9
5 changed files with 61 additions and 5 deletions

View File

@@ -437,7 +437,13 @@ export namespace Config {
})
export const TUI = z.object({
scroll_speed: z.number().min(1).optional().default(2).describe("TUI scroll speed"),
scroll_speed: z.number().min(1).optional().default(1).describe("TUI scroll speed"),
scroll_acceleration: z
.object({
enabled: z.boolean().describe("Enable scroll acceleration"),
})
.optional()
.describe("Scroll acceleration settings"),
})
export const Layout = z.enum(["auto", "stretch"]).meta({