关于Weex中嵌套滑动的问题

新手上路,请多包涵

我遇到一个问题关于嵌套滑动的问题,即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 的滑动 就可以解决问题,或者其他解决方案

阅读 5.1k
1 个回答
新手上路,请多包涵

解决了我,我也遇到这个问题

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进