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();
}
});
为什么 我滑到最低端的时候他们始终相等 而我往上滑的时候两个又不等了