perf(ui): Increase scroll speed from 5x to 8x
- Increased scroll speed multiplier to 8x for faster navigation - Balances speed with stability - fast enough to navigate quickly - Without being so fast that it becomes hard to control 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ed9926e24e
commit
f01e804490
|
|
@ -460,11 +460,11 @@ func (f *FastVScroll) CreateRenderer() fyne.WidgetRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *FastVScroll) Scrolled(ev *fyne.ScrollEvent) {
|
func (f *FastVScroll) Scrolled(ev *fyne.ScrollEvent) {
|
||||||
// Multiply scroll speed by 5x for much faster scrolling
|
// Multiply scroll speed by 8x for fast navigation without instability
|
||||||
fastEvent := &fyne.ScrollEvent{
|
fastEvent := &fyne.ScrollEvent{
|
||||||
Scrolled: fyne.Delta{
|
Scrolled: fyne.Delta{
|
||||||
DX: ev.Scrolled.DX * 5.0,
|
DX: ev.Scrolled.DX * 8.0,
|
||||||
DY: ev.Scrolled.DY * 5.0,
|
DY: ev.Scrolled.DY * 8.0,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
f.scroll.Scrolled(fastEvent)
|
f.scroll.Scrolled(fastEvent)
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -8479,7 +8479,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
// Wrap simple options with settings box at top
|
// Wrap simple options with settings box at top
|
||||||
simpleWithSettings := container.NewVBox(settingsBox, simpleOptions)
|
simpleWithSettings := container.NewVBox(settingsBox, simpleOptions)
|
||||||
|
|
||||||
// Both Simple and Advanced get their own fast scrolling (5x speed)
|
// Both Simple and Advanced get their own fast scrolling (8x speed)
|
||||||
simpleScrollBox := ui.NewFastVScroll(simpleWithSettings)
|
simpleScrollBox := ui.NewFastVScroll(simpleWithSettings)
|
||||||
advancedScrollBox := ui.NewFastVScroll(advancedOptions)
|
advancedScrollBox := ui.NewFastVScroll(advancedOptions)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ func buildSettingsView(state *appState) fyne.CanvasObject {
|
||||||
)
|
)
|
||||||
tabs.SetTabLocation(container.TabLocationTop)
|
tabs.SetTabLocation(container.TabLocationTop)
|
||||||
|
|
||||||
// Single fast scroll container for entire tabs area (5x speed)
|
// Single fast scroll container for entire tabs area (8x speed)
|
||||||
scrollableTabs := ui.NewFastVScroll(tabs)
|
scrollableTabs := ui.NewFastVScroll(tabs)
|
||||||
|
|
||||||
return container.NewBorder(topBar, bottomBar, nil, nil, scrollableTabs)
|
return container.NewBorder(topBar, bottomBar, nil, nil, scrollableTabs)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user