Skip to content

Commit

Permalink
Modify source code to only reload data if we are at top of the list view
Browse files Browse the repository at this point in the history
  • Loading branch information
rchanRivian committed Jun 1, 2023
1 parent a996c68 commit 24217cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/PTEConsoleLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@ - (void)updateTableViewInConsoleQueue
// Partial only
else
{
[self updateTableViewRowsRemoving:itemsToRemoveCount
inserting:itemsToInsertCount];
// only reload data to tableView if at the top
if (self.tableView.contentOffset.y < 0) {
[self.tableView reloadData];
}
}
});
}
Expand Down

0 comments on commit 24217cb

Please sign in to comment.