mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Fix first varbox row that never appeared again
After scrolling down
This commit is contained in:
@@ -133,6 +133,8 @@ void VariableBoxController::tableViewDidChangeSelection(SelectableTableView * t,
|
||||
const int currentSelectedRow = selectedRow();
|
||||
if (currentSelectedRow >= 0 && typeAtLocation(0, currentSelectedRow) == k_subtitleCellType) {
|
||||
if (currentSelectedRow == 0) {
|
||||
// We scroll to the first cell, otherwise it will never appear again
|
||||
t->scrollToCell(0, 0);
|
||||
t->selectCellAtLocation(0, 1);
|
||||
} else {
|
||||
t->selectCellAtLocation(0, selectedRow() + (previousSelectedCellY < currentSelectedRow ? 1 : -1));
|
||||
|
||||
Reference in New Issue
Block a user