-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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: animationsarea: docsRelated to the documentationRelated to the documentationstate: has PR
Milestone
Description
Which @angular/* package(s) are the source of the bug?
animations
Is this a regression?
No
Description
angular/packages/animations/src/players/animation_player.ts
Lines 76 to 80 in 950a554
/** | |
* Sets the position of the animation. | |
* @param position A 0-based offset into the duration, in milliseconds. | |
*/ | |
setPosition(position: number): void; |
angular/packages/animations/src/players/animation_player.ts
Lines 197 to 199 in 950a554
setPosition(position: number): void { | |
this._position = this.totalTime ? position * this.totalTime : 1; | |
} |
As you can see, position: number
is used as a 0-1 fractional value.
But the comment says:
A 0-based offset into the duration, in milliseconds.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version
)
No response
Anything else?
No response
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: animationsarea: docsRelated to the documentationRelated to the documentationstate: has PR