Skip to content

Commit

Permalink
fix(ios): Fix user sometimes cannot scroll the tab bar (#27061)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuo-xu authored Dec 19, 2024
1 parent f4c6445 commit 9a628b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1209,8 +1209,6 @@ public class BrowserViewController: UIViewController {
}
searchController?.additionalSafeAreaInsets = additionalInsets
favoritesController?.additionalSafeAreaInsets = additionalInsets

tabsBar.reloadDataAndRestoreSelectedTab(isAnimated: false)
}

override public var canBecomeFirstResponder: Bool {
Expand Down Expand Up @@ -2351,6 +2349,8 @@ public class BrowserViewController: UIViewController {
TabEvent.post(.didChangeURL(url), for: tab)
}

tabsBar.reloadDataAndRestoreSelectedTab(isAnimated: false)

if tab === tabManager.selectedTab {
updateStatusBarOverlayColor()

Expand Down

0 comments on commit 9a628b7

Please sign in to comment.