Skip to content

Commit 9996c8c

Browse files
committed
Fix iOS WebView scroll capture even when scrolling is disabled
1 parent f40b28a commit 9996c8c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • webview/src/iosMain/kotlin/com/multiplatform/webview/web

webview/src/iosMain/kotlin/com/multiplatform/webview/web/WebView.ios.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ fun IOSWebView(
167167
},
168168
properties =
169169
UIKitInteropProperties(
170-
interactionMode = UIKitInteropInteractionMode.NonCooperative,
170+
interactionMode = if (state.webSettings.iOSWebSettings.scrollEnabled) {
171+
UIKitInteropInteractionMode.NonCooperative
172+
} else {
173+
UIKitInteropInteractionMode.Cooperative()
174+
},
171175
isNativeAccessibilityEnabled = true,
172176
),
173177
)

0 commit comments

Comments
 (0)