Scrollload icon indicating copy to clipboard operation
Scrollload copied to clipboard

下拉刷新的问题

Open sharpele opened this issue 6 years ago • 0 comments

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

sharpele avatar Apr 14 '19 10:04 sharpele