From 522e7830e5d9dfb7fcf10842b5586df7ad1d2af8 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 9 Sep 2024 19:42:55 -0400 Subject: [PATCH] Fix scroll-to-top not working in in-app Safari Closes #538 --- Tusker/Screens/Main/BaseMainTabBarViewController.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Tusker/Screens/Main/BaseMainTabBarViewController.swift b/Tusker/Screens/Main/BaseMainTabBarViewController.swift index 990ef8c0a1..3019d6a419 100644 --- a/Tusker/Screens/Main/BaseMainTabBarViewController.swift +++ b/Tusker/Screens/Main/BaseMainTabBarViewController.swift @@ -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)