mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Only scroll to top once nav bar visible
This commit is contained in:
parent
4317fcf853
commit
20074b4c97
1 changed files with 2 additions and 1 deletions
|
|
@ -143,8 +143,9 @@ extension WebReaderCoordinator: WKNavigationDelegate {
|
|||
|
||||
func scrollViewShouldScrollToTop(_ scrollView: UIScrollView) -> Bool {
|
||||
scrollView.contentInset.top = readerViewNavBarHeight
|
||||
let navBarVisible = navBarVisibilityRatio == 1
|
||||
navBarVisibilityRatio = 1
|
||||
return true
|
||||
return navBarVisible
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue