Better-scroll pull-up load pullingUp event triggered multiple times

this.scroll = new BScroll(wrapper, {
  probeType: 1,
  pullUpLoad: {
    threshold: -20
  }
})

// 
this.scroll.on("pullingUp", () => {
  this.searchData(obj)  // 
})

looked at a lot of demo will not be triggered multiple times, why I am here. Comrade Lei Feng, where are you?

Mar.24,2021

I've had this problem before. My problem is initializing the bscroll object many times. The solution is to get rid of the extra initialization bscroll code!


did my brother solve this problem? I also encountered this problem with better-scroll. I swiped upward to request data many times, and anti-shaking is useless. If he is given a specified time, he will send out the final page flipping result, and I have given the data loading settime time to slide up while loading and waiting, and the pullingUp event can be triggered again. Ask


do you initialize BScroll

in searchData ()
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b374ea-2c09d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b374ea-2c09d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?