diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-04 12:20:00 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-07 16:02:18 -0500 |
| commit | 59bbcf6d5e11f6240ea4d0a5aa2851305fac1ec0 (patch) | |
| tree | b881829dbaa954129c62e8bc574413293032d885 | |
| parent | fefc6094175ba65079641663f8e99ab20d2b5a7d (diff) | |
increase scroll speed
| -rw-r--r-- | client/ui.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/ui.go b/client/ui.go index 87edea8..51d64e5 100644 --- a/client/ui.go +++ b/client/ui.go @@ -5,6 +5,7 @@ import ( "citrons.xyz/talk/tui" "citrons.xyz/talk/proto" "zgo.at/termfo/keys" + "strings" "os" ) @@ -49,7 +50,7 @@ func (a *application) onInput(ev tui.Event) { prompt.Input().Update(ev) buf := win.Buffer() - buf.Scroll(-ev.Mouse.Scroll * 2) + buf.Scroll(-ev.Mouse.Scroll * 5) scroll := tui.Size().Height - 5 switch ev.Key { case keys.PageUp: |
