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 {