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

你好作者! 你的lottie的案例里面的关闭函数有些问题 #34

Open
raintoway opened this issue May 4, 2019 · 0 comments
Open

Comments

@raintoway
Copy link

你的是这样的
finishRefresh=(params)=>{
this._refreshc && this._refreshc.finishRefresh(params);
this.lottieView.reset();
}
然而在运行这个函数的时候就执行this.lottieView.reset();的话 在动画显示上会不合理(因为数据获取往往都是很快的 也就是说this.lottieView.play()和this.lottieView.reset();的执行间隔 取决于你数据获取的间隔) 而且在header弹回顶部时是没动画的 这样的结果往往没有显示lottie
所以 以下的方式反而适合数据获取很快的情况
finishRefresh=()=>{
this._refreshc && this._refreshc.finishRefresh(()=>{
this.lottieView.reset();
});
}

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