Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(5907): webview bouncing issue on ios 16 #5909

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions ios/Capacitor/Capacitor/CAPBridgeViewController.swift
Expand Up @@ -285,6 +285,7 @@ extension CAPBridgeViewController {
// create the web view and set its properties
let aWebView = webView(with: .zero, configuration: webConfig)
aWebView.scrollView.bounces = false
aWebView.scrollView.alwaysBounceVertical = false
aWebView.scrollView.contentInsetAdjustmentBehavior = configuration.contentInsetAdjustmentBehavior
aWebView.allowsLinkPreview = configuration.allowLinkPreviews
aWebView.scrollView.isScrollEnabled = configuration.scrollingEnabled
Expand Down
1 change: 1 addition & 0 deletions ios/Capacitor/Capacitor/CAPWebView.swift
Expand Up @@ -155,6 +155,7 @@ extension CAPWebView {
loadInitialContext(webViewConfig.userContentController)
let webView = WKWebView(frame: .zero, configuration: webViewConfig)
webView.scrollView.bounces = false
webView.scrollView.alwaysBounceVertical = false
webView.scrollView.contentInsetAdjustmentBehavior = configuration.contentInsetAdjustmentBehavior
webView.allowsLinkPreview = configuration.allowLinkPreviews
webView.scrollView.isScrollEnabled = configuration.scrollingEnabled
Expand Down