-
Notifications
You must be signed in to change notification settings - Fork 27.1k
AnimationGroupPlayer getPosition() always zero #23785
Copy link
Copy link
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: animationslegacy animations package only. Otherwise use area: core.legacy animations package only. Otherwise use area: core.freq2: mediumtype: bug/fix
Milestone
Description
| let min = 0; |
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: animationslegacy animations package only. Otherwise use area: core.legacy animations package only. Otherwise use area: core.freq2: mediumtype: bug/fix