scorll-view在安卓上有时出现无法触发下拉触底事件

发布于 7 年前作者 ping0214914 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

我列表设置了每次加载20条数据,有时滑动到需要触底加载时,不生效,需要先往上拉一下,才能向下触发加载事件

  • 预期表现

与IOS一致

  • 复现路径

  • 提供一个最简复现 Demo

<scroll-view bindscrolltolower="touchBottom" scroll-y="true" class='swul_right'

style="height:100%">

 <view class="v"  

   style="{{index % 2==0?'background-color:#f5f5f5':'background-color:white'}}"

    wx:key="{{index}}" wx:for="{{bills}}" bindtap="handwul" data-wul="{{item}}">

   <view class='swul_box' style='line-height:30px;'>
     <view class="swul_leftbox">
       <text style='color:grey;width: auto'>{{index+1}}.</text>
       <text style="width: auto">{{item.name}}</text>
     </view>
     <view class='swul_rightbox' style="float: right;margin-right:10rpx">
       <text style='font-size:14px;color:grey;'>{{item.guige}}</text>
     </view>
   </view>
   <view class='swul_box' style='line-height: 20px;'>
     <text style='color:grey;margin-left:15px;'>{{item.no}}</text>
   </view>
 </view>
</scroll-view>
4 回复
na69
na691 楼6 年前
jingyao
jingyao2 楼6 年前

请问一下解决了吗

ngao
ngao3 楼6 年前

我也遇到这个问题 ,监听了一下滚动事件,发现把触底距离设置成1000(比较大的数字),就能解决了

kongguiying
kongguiying4 楼5 年前

同问,急