tweak: fix scroll speed (#1974)

This commit is contained in:
Aiden Cline 2025-08-15 16:19:58 -05:00 committed by GitHub
parent af5f7d0887
commit e545bfef1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1215,7 +1215,11 @@ func NewMessagesComponent(app *app.App) MessagesComponent {
vp := viewport.New()
vp.KeyMap = viewport.KeyMap{}
vp.MouseWheelDelta = app.ScrollSpeed
if app.ScrollSpeed > 0 {
vp.MouseWheelDelta = app.ScrollSpeed
} else {
vp.MouseWheelDelta = 2
}
// Default to showing tool details, hidden thinking blocks
showToolDetails := true