From cbafae84f91f237a1cad975a64df1e24ff786e19 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 6 Oct 2020 12:29:18 -0400 Subject: [PATCH] Update mouse wheel stuff in paginator per last-minute Bubble Tea API change --- viewport/viewport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewport/viewport.go b/viewport/viewport.go index d62d84e..4de2bb4 100644 --- a/viewport/viewport.go +++ b/viewport/viewport.go @@ -333,7 +333,7 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) { } case tea.MouseMsg: - switch msg.Button { + switch msg.Type { case tea.MouseWheelUp: lines := m.LineUp(3) if m.HighPerformanceRendering {