mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-03 07:33:45 +00:00
better scroll speed default for windows
This commit is contained in:
@@ -124,7 +124,8 @@ export function Session() {
|
||||
if (tui?.scroll_speed) {
|
||||
return new CustomSpeedScroll(tui.scroll_speed)
|
||||
}
|
||||
return undefined
|
||||
|
||||
return new CustomSpeedScroll(process.platform === "win32" ? 3 : 1)
|
||||
})
|
||||
|
||||
createEffect(async () => {
|
||||
|
||||
@@ -438,7 +438,7 @@ export namespace Config {
|
||||
})
|
||||
|
||||
export const TUI = z.object({
|
||||
scroll_speed: z.number().min(0.001).optional().default(1).describe("TUI scroll speed"),
|
||||
scroll_speed: z.number().min(0.001).optional().describe("TUI scroll speed"),
|
||||
scroll_acceleration: z
|
||||
.object({
|
||||
enabled: z.boolean().describe("Enable scroll acceleration"),
|
||||
|
||||
Reference in New Issue
Block a user