Skip to content

Commit eb2a465

Browse files
committed
fix scrollbar on iOS always show if not disable scroll
1 parent 9c7ac0d commit eb2a465

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ios/Classes/InAppWebView.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1050,11 +1050,12 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
10501050
// Fallback on earlier versions
10511051
}
10521052

1053-
scrollView.showsVerticalScrollIndicator = (options?.verticalScrollBarEnabled)!
1054-
scrollView.showsHorizontalScrollIndicator = (options?.horizontalScrollBarEnabled)!
10551053
scrollView.showsVerticalScrollIndicator = !(options?.disableVerticalScroll)!
10561054
scrollView.showsHorizontalScrollIndicator = !(options?.disableHorizontalScroll)!
10571055

1056+
scrollView.showsVerticalScrollIndicator = (options?.verticalScrollBarEnabled)!
1057+
scrollView.showsHorizontalScrollIndicator = (options?.horizontalScrollBarEnabled)!
1058+
10581059
// options.debuggingEnabled is always enabled for iOS.
10591060

10601061
if (options?.clearCache)! {

0 commit comments

Comments
 (0)