diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-07 14:57:04 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-07 16:02:18 -0500 |
| commit | 855e61c53c8a401c6f0be84a63808cb94cb19903 (patch) | |
| tree | 5f03c5357cf6aa75db05376cf6a42cc67d1e33c8 /client/buffer | |
| parent | 553ebc26cda61b567418205f7ee60be122b3c84f (diff) | |
channel list scrolling
Diffstat (limited to 'client/buffer')
| -rw-r--r-- | client/buffer/buffer.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/buffer/buffer.go b/client/buffer/buffer.go index 9750932..b7e79e9 100644 --- a/client/buffer/buffer.go +++ b/client/buffer/buffer.go @@ -94,10 +94,11 @@ func (b *Buffer) AtTop() bool { } func (b *Buffer) Show(id string) (atTop bool) { - tui.Push(id, tui.Box { + mouse := tui.Push(id, tui.Box { Width: tui.Fill, Height: tui.Fill, Dir: tui.Up, Overflow: true, Style: &tui.Style {Fg: tui.White, Bg: 232}, Scroll: &b.scroll, }) + b.scroll.ByMouse(mouse, true) defer tui.Pop() for m := b.bottom; m != nil; m = m.prev { |
