Skip to content

Commit fcca09e

Browse files
committed
Fix #428, not scrolling to selected view
1 parent 107e44a commit fcca09e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/ViewHierarchy/TreeExplorer/FLEXHierarchyTableViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ - (void)updateSearchResults:(NSString *)newText {
198198

199199
// If the search bar text field is active, don't scroll on selection because we may want
200200
// to continue typing. Otherwise, scroll so that the selected cell is visible.
201-
if (self.searchController.searchBar.isFirstResponder) {
201+
if (!self.searchController.searchBar.isFirstResponder) {
202202
[self trySelectCellForSelectedView];
203203
}
204204
}

0 commit comments

Comments
 (0)