Skip to content

下拉刷新的问题 #19

Description

@sharpele

我在 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();
}
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions