Skip to content

Commit b876c09

Browse files
authored
Merge pull request #334 from MattMur/main
Fix iOS WebView scroll capture even when scrolling is disabled
2 parents ccf8c42 + 1f328bc commit b876c09

1 file changed

Lines changed: 6 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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ fun IOSWebView(
167167
},
168168
properties =
169169
UIKitInteropProperties(
170-
interactionMode = UIKitInteropInteractionMode.NonCooperative,
170+
interactionMode =
171+
if (state.webSettings.iOSWebSettings.scrollEnabled) {
172+
UIKitInteropInteractionMode.NonCooperative
173+
} else {
174+
UIKitInteropInteractionMode.Cooperative()
175+
},
171176
isNativeAccessibilityEnabled = true,
172177
),
173178
)

0 commit comments

Comments
 (0)