From 855e61c53c8a401c6f0be84a63808cb94cb19903 Mon Sep 17 00:00:00 2001 From: citrons Date: Sat, 7 Jun 2025 14:57:04 -0500 Subject: channel list scrolling --- client/buffer/buffer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/buffer/buffer.go') 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 { -- cgit v1.2.3