perf(ui): Increase scroll speed from 2.5x to 5x

- 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 <noreply@anthropic.com>
This commit is contained in:
Stu Leak 2025-12-31 16:38:10 -05:00
parent 8238870cc5
commit ed9926e24e
3 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)