The Wayback Machine - https://web.archive.org/web/20220709083140/https://github.com/NativeScript/NativeScript/pull/9628
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

fix(core): Animation iteration functionality was broken for android css animations and iOS rotation #9628

Conversation

CatchABus
Copy link
Contributor

@CatchABus CatchABus commented Oct 29, 2021

PR Checklist

What is the current behavior?

Animation iteration count is ignored when set in CSS for Android.
Also, rotate animations that ran programmatically in iOS were ignoring iterations, curve, and delay properties.

What is the new behavior?

Animation will consider iteration count even if it's set as infinite in Android.
Rotate animation will now consider all animation properties when run programmatically in iOS.
After few runs, these changes seemed good.

Fixes/Closes #7712 .

@NathanWalker In the case of android, an obsolete code was the main reason animation functionality had defects.
It seems this code was a part of much older NativeScript 1.5.x: a3d762d#diff-65943155215ba5170b0bd573cf98c4ec9663cba6c11babf37a8bed411db5d0c1
After taking a closer look, I realized it's literally no longer doing a thing since the implementation of isPlaying flag check but can still cause harm.

This PR is ready now and I can say these changes had positive results on my side.

@cla-bot cla-bot bot added the cla: yes label Oct 29, 2021
NathanWalker
NathanWalker previously approved these changes Oct 29, 2021
@CatchABus CatchABus marked this pull request as draft Oct 30, 2021
@CatchABus
Copy link
Contributor Author

@CatchABus CatchABus commented Oct 30, 2021

I marked this PR as draft because there is 1 more thing I wish to test on iOS regarding these changes.

@CatchABus CatchABus changed the title fix(core): Android animation iteration count was ignored in CSS fix(core): Animation iteration functionality was broken for some cases Nov 2, 2021
@CatchABus CatchABus changed the title fix(core): Animation iteration functionality was broken for some cases fix(core): Animation iteration functionality for any android animation and iOS rotation Nov 2, 2021
@CatchABus CatchABus changed the title fix(core): Animation iteration functionality for any android animation and iOS rotation fix(core): Animation iteration functionality was broken for android css animations and iOS rotation Nov 2, 2021
@CatchABus CatchABus marked this pull request as ready for review Nov 2, 2021
@CatchABus CatchABus force-pushed the android-animation-iterations-fix branch from 29c1b01 to d5b510d Compare Nov 3, 2021
@CatchABus
Copy link
Contributor Author

@CatchABus CatchABus commented Dec 7, 2021

I don't think this PR needs further changes. Just let me know if there is anything else I need to do to improve it.

@rigor789 rigor789 added this to the 8.2 milestone Dec 7, 2021
@NathanWalker NathanWalker changed the base branch from master to release/8.2.0 Jan 23, 2022
@NathanWalker NathanWalker merged commit 7a4f06b into NativeScript:release/8.2.0 Jan 23, 2022
2 of 3 checks passed
NathanWalker added a commit that referenced this issue Feb 14, 2022
NathanWalker added a commit that referenced this issue Feb 15, 2022
NathanWalker added a commit that referenced this issue Feb 15, 2022
NathanWalker added a commit that referenced this issue Feb 18, 2022
NathanWalker added a commit that referenced this issue Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants