mirror of
https://github.com/sst/opencode.git
synced 2025-08-22 14:04:07 +00:00
tweak: fix scroll speed (#1974)
This commit is contained in:
parent
af5f7d0887
commit
e545bfef1f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue