ソースを参照

Fix #428, not scrolling to selected view

Tanner Bennett 5 年 前
コミット
fcca09e74a
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      Classes/ViewHierarchy/TreeExplorer/FLEXHierarchyTableViewController.m

+ 1 - 1
Classes/ViewHierarchy/TreeExplorer/FLEXHierarchyTableViewController.m

@@ -198,7 +198,7 @@ typedef NS_ENUM(NSUInteger, FLEXHierarchyScope) {
     
     // If the search bar text field is active, don't scroll on selection because we may want
     // to continue typing. Otherwise, scroll so that the selected cell is visible.
-    if (self.searchController.searchBar.isFirstResponder) {
+    if (!self.searchController.searchBar.isFirstResponder) {
         [self trySelectCellForSelectedView];
     }
 }