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

通过 layer.timeline 控制动画时, Group 的效果有问题 #5

Closed
AngusFu opened this issue Mar 9, 2018 · 1 comment
Closed

Comments

@AngusFu
Copy link
Contributor

AngusFu commented Mar 9, 2018

问题

为 layer 设置 layer.timeline.playbackRate = 0 后,其中的 Group 动画以及 group 中的 sprites 动画并未停止。

预期

设置 layer.timeline.playbackRate = 0 后, group 自身动画以及 group 中的 sprites 动画应该都停下来。

demo

https://code.h5jun.com/vesif

@akira-cn
Copy link
Contributor

akira-cn commented Mar 9, 2018

因为sprite拿parent的timeline,group里面的sprite拿到的parent是group而不是layer,所以拿不到layer的timeline,这块v1.15.1已经修复了,应该要总是拿layer的timeline。

@akira-cn akira-cn closed this as completed Mar 9, 2018
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