[PATCH senpai] Switch to prev/next channel when scrolling over horizontal list
Export this patch
---
app.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/app.go b/app.go
index ad0fbfd..4c63e29 100644
--- a/app.go
+++ b/app.go
@@ -408,6 +408,8 @@ func (app *App) handleMouseEvent(ev *tcell.EventMouse) {
app.win.ScrollChannelUpBy(4)
} else if x > w-app.win.Config().MemberColWidth {
app.win.ScrollMemberUpBy(4)
+ } else if _, h := app.win.Size(); y == h-1 {
+ app.win.PreviousBuffer()
} else {
app.win.ScrollUpBy(4)
app.requestHistory()
@@ -418,6 +420,8 @@ func (app *App) handleMouseEvent(ev *tcell.EventMouse) {
app.win.ScrollChannelDownBy(4)
} else if x > w-app.win.Config().MemberColWidth {
app.win.ScrollMemberDownBy(4)
+ } else if _, h := app.win.Size(); y == h-1 {
+ app.win.NextBuffer()
} else {
app.win.ScrollDownBy(4)
}
--
2.30.2
Thanks for the patch.
I have modified this slightly to simply scroll the channel list when
using the scrolling wheel over the list line (this is needed when
joining a lot of channels).
See: 20c2b265c504ae47b959e60088aa6da41bef3263