Skip to content

Commit

Permalink
Merge pull request #31 from rchanRivian/master
Browse files Browse the repository at this point in the history
Modify source code to only reload data if we are at top of the list view
  • Loading branch information
rivera-ernesto authored Oct 17, 2023
2 parents a996c68 + 24217cb commit dafda95
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 dafda95

Please sign in to comment.