Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ public class VerticalCandidateController: CandidateController {
let selectedRow = tableView.selectedRow
let pageIndex = newRowIndex / labelCount

if selectedRow == -1 || abs(newRowIndex - selectedRow) == 1 {
// Simply scroll to the row if never selected or if it's moving by one.
if selectedRow == -1 || newRowIndex == 0 || abs(newRowIndex - selectedRow) == 1 {
// Simply scroll to the row if never selected, if to row 0, or if it's moving by one.
tableView.scrollRowToVisible(newRowIndex)
Comment thread
lukhnos marked this conversation as resolved.
} else {
if newRowIndex > selectedRow {
Expand Down