scroll-view's scrolling bottom event

Problem:  bindscrolltolower="nextPage" , the bottoming event has been added, but it can't be triggered anyway

<scroll-view class="list" bindscrolltolower="nextPage" 
            scroll-with-animation>
</scroll-view>

solve:

Need to fix a height and specify the scrolling direction: scroll-y style="height:{ {windowHeight-nav_height}}px;"

<scroll-view class="list" bindscrolltolower="nextPage" scroll-y style="height:{
   
   {windowHeight-nav_height}}px;"
               wx:if="{
   
   {filterList.length>0}}" scroll-with-animation>

 

Other reasons: In the case of too little data in the first page, it may not be triggered because the current height is not filled, this bottoming event.

reference:

There is a probability that the bottoming event of scroll-view will not be triggered | WeChat Open Community

Guess you like

Origin blog.csdn.net/LlanyW/article/details/132141979