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 { extension BaseMainTabBarViewController: StatusBarTappableViewController {
func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult { func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult {
guard presentedViewController == nil else { guard presentedViewController == nil,
return .stop let vc = selectedViewController as? StatusBarTappableViewController else {
}
guard let vc = selectedViewController as? StatusBarTappableViewController else {
return .continue return .continue
} }
return vc.handleStatusBarTapped(xPosition: xPosition) return vc.handleStatusBarTapped(xPosition: xPosition)