scorll-view在安卓上有时出现无法触发下拉触底事件
发布于 5 年前 作者 ping02 14716 次浏览 来自 问答
  • 当前 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 回复

请问一下解决了吗

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

回到顶部