Skip to content

Chained animations lose state on iOS #801

Closed

Description

@tjvantoll

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

Activity

  1. self-assigned this
    on Sep 23, 2015
  2. hamorphis commented on Sep 23, 2015

    @hamorphis
    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.

  3. added this to the milestone on Oct 14, 2015
  4. added a commit that references this issue on Oct 14, 2015
    21b3a0a
  5. added a commit that references this issue on Oct 14, 2015
    ea62b3d
  6. lock commented on Aug 29, 2019

    @lock

    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.

  7. locked and limited conversation to collaborators on Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions