Update mouse wheel stuff in paginator per last-minute Bubble Tea API change

This commit is contained in:
Christian Rocha 2020-10-06 12:29:18 -04:00
parent 959598c9aa
commit cbafae84f9
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018

View File

@ -333,7 +333,7 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
} }
case tea.MouseMsg: case tea.MouseMsg:
switch msg.Button { switch msg.Type {
case tea.MouseWheelUp: case tea.MouseWheelUp:
lines := m.LineUp(3) lines := m.LineUp(3)
if m.HighPerformanceRendering { if m.HighPerformanceRendering {