@@ -58,7 +58,7 @@ export interface WebViewProps extends ViewBaseProps {
5858 messagingModuleName: string
5959 shouldStartLoadWithRequestEnabled: boolean
6060 webviewDebuggingEnabled: boolean
61- nestedScrollEnabled: boolean
61+ // nestedScrollEnabled: boolean
6262}
6363
6464export class RNCWebViewBridge {
@@ -108,7 +108,7 @@ export struct WebView {
108108 messagingEnabled: boolean = false;
109109 hasRegisterJavaScriptProxy: boolean = false;
110110 controllerAttached: boolean = false;
111- nestedScrollFlag: boolean = false;
111+ // nestedScrollFlag: boolean = false;
112112 renderMode: RenderMode = RenderMode.SYNC_RENDER;
113113
114114 aboutToAppear() {
@@ -151,9 +151,9 @@ export struct WebView {
151151 this.source = this.descriptor.props.newSource
152152 this.html = this.source.html
153153 this.url = this.source.uri;
154- this.nestedScrollFlag = this.descriptor.props.nestedScrollEnabled;
154+ // this.nestedScrollFlag = this.descriptor.props.nestedScrollEnabled;
155155 // nestedScrollEnabled true表示可嵌套滚动,不需要自适应和web统一渲染,默认是false
156- this.renderMode = this.nestedScrollFlag?RenderMode.ASYNC_RENDER:RenderMode.SYNC_RENDER
156+ // this.renderMode = this.nestedScrollFlag?RenderMode.ASYNC_RENDER:RenderMode.SYNC_RENDER
157157 this.registerCommandCallback()
158158 }
159159
@@ -378,16 +378,16 @@ export struct WebView {
378378 .domStorageAccess(this.descriptor.props.domStorageEnabled)
379379 .zoomAccess(this.descriptor.props.scalesPageToFit)
380380 // nestedScrollFlag 为true 表示可以在嵌套滚动中,web自己能滚动
381- .layoutMode(this.nestedScrollFlag ? WebLayoutMode.NONE : WebLayoutMode.FIT_CONTENT)
381+ // .layoutMode(this.nestedScrollFlag ? WebLayoutMode.NONE : WebLayoutMode.FIT_CONTENT)
382382
383- .nestedScroll(this.nestedScrollFlag ? {
384- scrollForward: NestedScrollMode.SELF_ONLY,
385- scrollBackward: NestedScrollMode.SELF_ONLY
386- } : { scrollForward: NestedScrollMode.PARENT_FIRST, scrollBackward: NestedScrollMode.PARENT_FIRST })
387- .overScrollMode(OverScrollMode.NEVER)
388- .onSizeChange((event)=>{
389- Logger.debug(TAG, "[RNOH] event width: " + event.width + "[RNOH] event height: " + event.height)
390- })
383+ // .nestedScroll(this.nestedScrollFlag ? {
384+ // scrollForward: NestedScrollMode.SELF_ONLY,
385+ // scrollBackward: NestedScrollMode.SELF_ONLY
386+ // } : { scrollForward: NestedScrollMode.PARENT_FIRST, scrollBackward: NestedScrollMode.PARENT_FIRST })
387+ // .overScrollMode(OverScrollMode.NEVER)
388+ // .onSizeChange((event)=>{
389+ // Logger.debug(TAG, "[RNOH] event width: " + event.width + "[RNOH] event height: " + event.height)
390+ // })
391391 .onProgressChange((event) => {
392392 if (event) {
393393 this.progress = event.newProgress
0 commit comments