Skip to content

Commit

Permalink
refactor: empty fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Apr 24, 2024
1 parent 96ddbaa commit 693a37c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tui/mouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ func (ui *UI) onMouse(event *tcell.EventMouse, action tview.MouseAction) (*tcell
}
}
return nil, action
case tview.MouseScrollUp:
fallthrough
case tview.MouseScrollDown:
case tview.MouseScrollUp, tview.MouseScrollDown:
row, column := ui.table.GetSelection()
if action == tview.MouseScrollUp && row > 0 {
row--
Expand Down

0 comments on commit 693a37c

Please sign in to comment.