Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pullup.js设置bufferHeight时可能会多触发一次pullup事件 #24

Open
chenjiangsong opened this issue Apr 5, 2017 · 0 comments
Open

Comments

@chenjiangsong
Copy link

build/cm/plugins/pullup.js

_scrollHandler: function(e) {
  var self = this,
  xscroll = self.xscroll;
  if (!self.isLoading && Math.abs(e.scrollTop) + xscroll.height + self.userConfig.height + self.userConfig.bufferHeight >= xscroll.containerHeight + xscroll.boundry._xtop + xscroll.boundry._xbottom) {
    self._changeStatus("loading");
  }
  return self;
}

希望这里的if条件加上Math.abs(e.scrollTop) > 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant