Skip to content

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

Merged
NathanWalker merged 13 commits into
NativeScript:release/8.2.0from
CatchABus:android-animation-iterations-fix
Jan 23, 2022
Merged

NathanWalker merged 13 commits into
NativeScript:release/8.2.0from
CatchABus:android-animation-iterations-fix

Conversation

@CatchABus

@CatchABus CatchABus commented Oct 29, 2021 •

Copy link
Copy Markdown
Contributor

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 October 30, 2021 00:05
@CatchABus

CatchABus commented Oct 30, 2021 •

Copy link
Copy Markdown
Contributor Author

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 November 2, 2021 18:26
@CatchABus
CatchABus force-pushed the android-animation-iterations-fix branch from 29c1b01 to d5b510d Compare November 3, 2021 11:34
@CatchABus

Copy link
Copy Markdown
Contributor Author

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 January 23, 2022 17:43
@NathanWalker
NathanWalker merged commit 7a4f06b into NativeScript:release/8.2.0 Jan 23, 2022
NathanWalker added a commit that referenced this pull request Feb 14, 2022
… iOS rotation (#9628)

closes #7712

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
NathanWalker added a commit that referenced this pull request Feb 15, 2022
… iOS rotation (#9628)

closes #7712

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
NathanWalker added a commit that referenced this pull request Feb 15, 2022
… iOS rotation (#9628)

closes #7712

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
NathanWalker added a commit that referenced this pull request Feb 18, 2022
… iOS rotation (#9628)

closes #7712

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
NathanWalker added a commit that referenced this pull request Mar 1, 2022
… iOS rotation (#9628)

closes #7712

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
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.

Animate css loop count not correct under certain conditions?

3 participants