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

Chained animations lose state on iOS #801

Closed
tjvantoll opened this issue Sep 22, 2015 · 2 comments
Closed

Chained animations lose state on iOS #801

tjvantoll opened this issue Sep 22, 2015 · 2 comments

Comments

@tjvantoll
Copy link
Contributor

The code below chains two animations—one that rotates an image 90 degrees, and a second that scales it to twice its size.

<Page loaded="loaded">
    <AbsoluteLayout>
        <Image src="~/logo.png" id="logo" />
    </AbsoluteLayout>
</Page>
exports.loaded = function(args) {
    var page = args.object;
    var message = page.getViewById("logo");
    message.animate({
        rotate: 90,
        duration: 1000
    }).then(function() {
        return message.animate({
            scale: { x: 2, y: 2 },
            duration: 1000
        });
    });
};

This works as intended on Android, but on iOS the second animation incorrectly rotates the image during the scaling, and then reverts to the appropriate value when the animation completes. You can see this behavior in the gif below:

ios-bug

@hamorphis hamorphis self-assigned this Sep 23, 2015
@hamorphis
Copy link
Contributor

I will investigate this. Without looking at it, what comes to my mind is that the rotate and scale transform use the same spots in the affine transform matrix, i.e. UIView.transform property.

@hamorphis hamorphis added this to the 1.5 (Under Review) milestone Oct 14, 2015
hamorphis added a commit that referenced this issue Oct 14, 2015
Fixed #801: Chained animations lose state on iOS.
@lock
Copy link

lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants