mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Set the scroll indicator offsets on the webview
This prevents the scroll from bouncing when we scroll to the top we should figure out how to query for the system navigation bar size and use that instead of hard coding 50.
This commit is contained in:
parent
89d8b71bd4
commit
d7d4131f9f
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ import WebKit
|
|||
webView.backgroundColor = UIColor.clear
|
||||
webView.configuration.userContentController = contentController
|
||||
webView.scrollView.delegate = context.coordinator
|
||||
webView.scrollView.scrollIndicatorInsets = UIEdgeInsets(top: 50, left: 0, bottom: 0, right: 0)
|
||||
|
||||
for action in WebViewAction.allCases {
|
||||
webView.configuration.userContentController.add(context.coordinator, name: action.rawValue)
|
||||
|
|
|
|||
Loading…
Reference in a new issue