amaze iscroll的demo中 y 跟 pullStart 到底是什么意思

myScroll.on('scrollStart', function() {

      if (this.y >= topOffset) {
        pullFormTop = true;
      }
      pullStart = this.y;       
      // console.log(this);
    });
    myScroll.on('scrollEnd', function() {
      if (pullFormTop && this.directionY === -1) {
        _this.handlePullDown();       
      }
      pullFormTop = false;  
     
      
      // pull up to load more
      if (pullStart === this.y && (this.directionY === 1)) {
         alert(this.y +"#3#3#" + pullStart);
        _this.handlePullUp();
      }
    });
    

图片描述 为什么 我滑到最低端的时候他们始终相等 而我往上滑的时候两个又不等了

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