Fix scroll-to-top not working in in-app Safari

Closes #538
This commit is contained in:
Shadowfacts 2024-09-09 19:42:55 -04:00
parent 263210ac3c
commit 522e7830e5
1 changed files with 2 additions and 4 deletions

View File

@ -184,10 +184,8 @@ extension BaseMainTabBarViewController: BackgroundableViewController {
extension BaseMainTabBarViewController: StatusBarTappableViewController {
func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult {
guard presentedViewController == nil else {
return .stop
}
guard let vc = selectedViewController as? StatusBarTappableViewController else {
guard presentedViewController == nil,
let vc = selectedViewController as? StatusBarTappableViewController else {
return .continue
}
return vc.handleStatusBarTapped(xPosition: xPosition)