Merge pull request #256 from phamnhuvu-dev/master

fix scrollbar on iOS always show if not disable scroll
This commit is contained in:
Lorenzo Pichilli 2020-05-09 04:37:54 +02:00 committed by GitHub
commit ece4d8186f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1050,11 +1050,12 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
// Fallback on earlier versions
}
scrollView.showsVerticalScrollIndicator = (options?.verticalScrollBarEnabled)!
scrollView.showsHorizontalScrollIndicator = (options?.horizontalScrollBarEnabled)!
scrollView.showsVerticalScrollIndicator = !(options?.disableVerticalScroll)!
scrollView.showsHorizontalScrollIndicator = !(options?.disableHorizontalScroll)!
scrollView.showsVerticalScrollIndicator = (options?.verticalScrollBarEnabled)!
scrollView.showsHorizontalScrollIndicator = (options?.horizontalScrollBarEnabled)!
// options.debuggingEnabled is always enabled for iOS.
if (options?.clearCache)! {