Skip to content

AnimationGroupPlayer getPosition() always zero #23785

@soonwait

Description

@soonwait

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: animationsfreq2: mediumtype: bug/fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions