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

AnimationGroupPlayer getPosition() always zero #23785

Closed
soonwait opened this issue May 9, 2018 · 4 comments
Closed

AnimationGroupPlayer getPosition() always zero #23785

soonwait opened this issue May 9, 2018 · 4 comments
Labels
area: animations freq2: medium P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent type: bug/fix
Milestone

Comments

@soonwait
Copy link

soonwait commented May 9, 2018

    function () {
        var /** @type {?} */ min = 0;
        this.players.forEach(function (player) {
            var /** @type {?} */ p = player.getPosition();
            min = Math.min(p, min);
        });
        return min;
    };

IS THIS A BUG ???

when min = 0, it always 0 unless player.getPosition() < 0

maybe like this : var min = 1

@literalpie
Copy link
Contributor

I'm also seeing this issue. In addition, player.totalTime is always 0.

stackblitz

@literalpie
Copy link
Contributor

related to #18891, but I guess it's different because this is a group, while that issue is about animationPlayer

@jelbourn jelbourn added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent and removed severity3: broken labels Oct 1, 2020
@JoostK
Copy link
Member

JoostK commented Dec 9, 2020

Hi folks, the fix for this issue (#39983) has landed in 11.0.4, thanks to @literalpie.

@JoostK JoostK closed this as completed Dec 9, 2020
@JoostK JoostK linked a pull request Dec 9, 2020 that will close this issue
14 tasks
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: animations freq2: medium P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants