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

v2.0.2 下拉刷新仍然会自动弹回 #130

Closed
rockingdice opened this issue Aug 9, 2019 · 4 comments
Closed

v2.0.2 下拉刷新仍然会自动弹回 #130

rockingdice opened this issue Aug 9, 2019 · 4 comments

Comments

@rockingdice
Copy link

pseudo代码供参考,删了些内容相关的:

    _controller = EasyRefreshController();
   EasyRefresh(
            enableControlFinishRefresh: true,
            header: ClassicalHeader(),
            controller: _controller,
            child: //ListView,
            onRefresh: () async {
              DataManager().checkDataUpdate().then((succeed) {
                _controller.finishRefresh(success: succeed);
              });
            },
          ),

具体操作方法是,下拉ListView,到箭头刚刚改为向上箭头时,迅速抬起,ListView会被物理反弹上去很远,而不是按设想的停在顶部,等待我的refresh 完成;

如果下拉的距离超过上面提的位置一点点,这个问题就会减轻,如果距离比较大(大概是比最后停留位置要长的时候)就不会有问题。

@rockingdice
Copy link
Author

我是在安卓手机上测试的,ios还没测试过。

@xuelongqy
Copy link
Owner

确实有这个问题,感谢反馈。我会尽快找到解决办法

@xuelongqy
Copy link
Owner

已经修复了,你可以使用git的方式导入github最新源码进行测试

@rockingdice
Copy link
Author

感谢!

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

2 participants