我遇到一个问题关于嵌套滑动的问题,即Scoller 或者list 嵌套一个自定义components(webView)。这个时候webView能够滑动,其他的并不能
如:
<list class="list">
<cell class="row" repeat="item in rows" index="{{$index}}">
<div if="{{item.id ==1}}">row {{item.id}}>
<img resize="cover" class="cover" src="{{webContent.image}}"></img>
<text class="imageSource" >{{webContent.image_source}}</text>
<text class="title">{{webContent.title}}</text>
</div>
<mywebview class="webview" loadweb="{{webContent.body}}" if="{{item.id ==2}}"></mywebview>
</cell>
</list>
或者使用Scoller:
<scroller >
<div>
<img resize="cover" class="cover" src="{{webContent.image}}"></img>
<text class="imageSource" >{{webContent.image_source}}</text>
<text class="title">{{webContent.title}}</text>
</div>
<mywebview class="webview" loadweb="{{webContent.body}}"></mywebview>
</scroller>
效果都是WebView能够滑动,上面的Div块元素的东西不会动.是因为滑动冲突导致只有webView 能够滑动么?这样的话,是否解决方案只能在android 平台上面去禁止webView 的滑动 就可以解决问题,或者其他解决方案
解决了我,我也遇到这个问题