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

下拉刷新的问题 #19

Open
sharpele opened this issue Apr 14, 2019 · 0 comments
Open

下拉刷新的问题 #19

sharpele opened this issue Apr 14, 2019 · 0 comments

Comments

@sharpele
Copy link

我在 pullRefresh里面调用 sl.refreshData();每次下拉刷新很奇怪,拉到下拉动画刚完成的时候释放鼠标可以正常刷新,但是拉太远以后再释放鼠标只能加载一段数据就卡在loadMore动画一直没反应了。用triggerPullResfresh();也完全正常。大佬这是什么原因?
me.scrollLoader = new Scrollload({
container: me.get("#drop-file-list")[0],
content: me.get("#file-list")[0],
window: me.get("#drop-file-list")[0],
enableLoadMore: true,
loadMore: function (sl) {
me.loadFiles(function (files) {
if (files && files.length > 0) {
sl.unLock();
}
else {
sl.noMoreData();
}
}, function (xhr) {
sl.throwException();
});
},
enablePullRefresh: true,//关闭下拉刷新
pullRefresh: function (sl) {
sl.refreshComplete();
me.nextpage = 0;
me.chooseFile(null);
me.get("#file-list").empty();
sl.refreshData();
}
});

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