Skip to content

Animations: animating from current style on state change regression #17170

Closed

Description

@dharders

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request 

Current behavior

Changing animation state, mid-flight of another animation, causes the new animation to play from the beginning and not from the current mid-flight style.

Expected behavior

On state change, animate from currently applied styles/position if we haven't explicitly set a starting style for the transition.

Minimal reproduction of the problem with instructions

Plunker with instructions (also see working behavior in 4.2.0-beta.1)
https://plnkr.co/edit/yLUWhK?p=preview

What is the motivation / use case for changing the behavior?

Better user experience, smoother animations, restore behavior of 4.2.0-beta.1

Please tell us about your environment:

Windows 7, code, yarn, ng cli

  • Angular version: 4.2.0-rc.2
  • Browser:

Tested in Chrome Desktop 58.0.3029.110 (64-bit), iOS Safari 10.2.1

  • Language: Typescript 2.3.4

  • Node (for AoT issues): node --version =

/cc @matsko

Activity

  1. self-assigned this
    on Jun 5, 2017
  2. added
    area: animations
    regression
    on Jun 5, 2017
  3. dharders commented on Jun 13, 2017

    @dharders
    Author
  4. dharders commented on Jun 18, 2017

    @dharders
    Author
  5. dharders commented on Jun 22, 2017

    @dharders
    Author
  6. dharders commented on Jun 30, 2017

    @dharders
    Author

    Is this regression likely to be fixed soon? I'd prefer not to have to change our large code base to work around it.

    It was marked severity5: regression, but there has been several releases since. I assumed regressions were a priority for a stable branch. Don't get me wrong, I love Angular and the new Animations module and understand bugs can easily creep in, but confidence in the turn around time of fixes for future production code is worrisome for management.

    Issue still present on latest 4.2.5 release.

    Updated plunker: https://plnkr.co/edit/yLUWhK?p=preview

    /cc @matsko

  7. matsko commented on Jun 30, 2017

    @matsko
    Contributor

    Yes I am working towards it. It has been in the way of few other regressions that just landed in 4.2.5.
    I think that once this one lands then it may fix most of the problem #17856. Once that goes in (I think tomorrow), then you should be able use angular@head and see if it solves the problem.

  8. dharders commented on Jul 10, 2017

    @dharders
    Author
  9. dharders commented on Jul 16, 2017

    @dharders
    Author

    Updated plunker to latest 4.3.0 release. Regression still present

  10. matsko commented on Jul 17, 2017

    @matsko
    Contributor

    Alright @dharders I believe I fixed the issue here in this PR: #18172

  11. matsko commented on Jul 17, 2017

    @matsko
    Contributor

    Thank you for being persistent with this.

  12. dharders commented on Jul 18, 2017

    @dharders
    Author

    Thanks @matsko!

    Is there any way to test your PR from the above plunker ? (i.e. does Travis CI generate a build link etc) or do I have to wait until it is merged then link to nightly @angular/animations-builds ?

    Thanks again, appreciate all your work !

  13. added 2 commits that reference this issue on Jul 18, 2017
    b9bb82e
    6b6c572
  14. matsko commented on Jul 18, 2017

    @matsko
    Contributor

    I pushed a branch into the builds code so you can test against it:

    Use (inside of package.json):

    "@angular/animations": "git://github.com/angular/animations-builds.git#animation_issue_17170",
    "@angular/platform-browser": "git://github.com/angular/platform-browser-builds.git#animation_issue_17170",
    
  15. added a commit that references this issue on Jul 18, 2017
    23146c9
  16. dharders commented on Jul 18, 2017

    @dharders
    Author

    Works perfect. Thanks again!

  17. added a commit that references this issue on Jul 19, 2017
    333ffd8
  18. added a commit that references this issue on Aug 11, 2017
    24f6d6d
  19. added 2 commits that reference this issue on Aug 26, 2017
    34bf423
    85fa2fa
  20. angular-automatic-lock-bot commented on Sep 12, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

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

Metadata

Metadata

Assignees

Labels

area: animationsregression

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions