Skip to content

Commit f1c9d6a

Browse files
vladimir-barsuchenkomhevery
authored andcommittedDec 14, 2018
fix(animations): do not truncate decimals for delay (#24455)
Do not truncate decimals for animation delay if specified in seconds PR Close #24455
1 parent df123e0 commit f1c9d6a

File tree

1 file changed

+1
-1
lines changed
  • packages/animations/browser/src

1 file changed

+1
-1
lines changed
 

‎packages/animations/browser/src/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function parseTimeExpression(
6565

6666
const delayMatch = matches[3];
6767
if (delayMatch != null) {
68-
delay = _convertTimeValueToMS(Math.floor(parseFloat(delayMatch)), matches[4]);
68+
delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);
6969
}
7070

7171
const easingVal = matches[5];

1 commit comments

Comments
 (1)

IgorMinar commented on Dec 18, 2018

@IgorMinar
Contributor

@matsko @levgaas can you please add tests for this change as a followup PR?

Please sign in to comment.