Skip to content

Commit

Permalink
scroll to selected item after opening new tab, etc (#2689)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/414235014887631/1207005077017362/f
Tech Design URL:
CC:

Description:
Make sure tabs collection is in sync with selected tab after opening.

Steps to test this PR:

Open a web page
Long press a link and open in new tab
Ensure omni bar works as expected
Swipe between tabs and check omni bar
Use tab switcher and check omni bar
  • Loading branch information
brindy authored Apr 5, 2024
1 parent 3dfacc6 commit c7fefb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ class MainViewController: UIViewController {
refreshTabIcon()
refreshControls()
tabsBarController?.refresh(tabsModel: tabManager.model)
swipeTabsCoordinator?.refresh(tabsModel: tabManager.model)
swipeTabsCoordinator?.refresh(tabsModel: tabManager.model, scrollToSelected: true)
}

if clearInProgress {
Expand Down

0 comments on commit c7fefb8

Please sign in to comment.