From ed9926e24e73df10e338893f587fe02471af9326 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Wed, 31 Dec 2025 16:38:10 -0500 Subject: [PATCH] perf(ui): Increase scroll speed from 2.5x to 5x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Doubled scroll speed multiplier for much faster navigation - Applied to Convert and Settings modules - Significantly improves ability to navigate long settings quickly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- internal/ui/components.go | 6 +++--- main.go | 2 +- settings_module.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/ui/components.go b/internal/ui/components.go index 01cd6e1..eb26984 100644 --- a/internal/ui/components.go +++ b/internal/ui/components.go @@ -460,11 +460,11 @@ func (f *FastVScroll) CreateRenderer() fyne.WidgetRenderer { } func (f *FastVScroll) Scrolled(ev *fyne.ScrollEvent) { - // Multiply scroll speed by 2.5x for faster scrolling + // Multiply scroll speed by 5x for much faster scrolling fastEvent := &fyne.ScrollEvent{ Scrolled: fyne.Delta{ - DX: ev.Scrolled.DX * 2.5, - DY: ev.Scrolled.DY * 2.5, + DX: ev.Scrolled.DX * 5.0, + DY: ev.Scrolled.DY * 5.0, }, } f.scroll.Scrolled(fastEvent) diff --git a/main.go b/main.go index 5e496fd..b25046c 100644 --- a/main.go +++ b/main.go @@ -8479,7 +8479,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { // Wrap simple options with settings box at top simpleWithSettings := container.NewVBox(settingsBox, simpleOptions) - // Both Simple and Advanced get their own fast scrolling (2.5x speed) + // Both Simple and Advanced get their own fast scrolling (5x speed) simpleScrollBox := ui.NewFastVScroll(simpleWithSettings) advancedScrollBox := ui.NewFastVScroll(advancedOptions) diff --git a/settings_module.go b/settings_module.go index 6cc7bb3..67a13f0 100644 --- a/settings_module.go +++ b/settings_module.go @@ -165,7 +165,7 @@ func buildSettingsView(state *appState) fyne.CanvasObject { ) tabs.SetTabLocation(container.TabLocationTop) - // Single fast scroll container for entire tabs area (2.5x speed) + // Single fast scroll container for entire tabs area (5x speed) scrollableTabs := ui.NewFastVScroll(tabs) return container.NewBorder(topBar, bottomBar, nil, nil, scrollableTabs)