Browse Source
Correctly process KeyTime to Cue by using TimeSpan.TotalSeconds instead of Ticks.
pull/3836/head
Jumar Macato
6 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Animation/Animation.cs
|
|
|
@ -251,7 +251,7 @@ namespace Avalonia.Animation |
|
|
|
|
|
|
|
if (keyframe.TimingMode == KeyFrameTimingMode.TimeSpan) |
|
|
|
{ |
|
|
|
cue = new Cue(keyframe.KeyTime.Ticks / Duration.Ticks); |
|
|
|
cue = new Cue(keyframe.KeyTime.TotalSeconds / Duration.TotalSeconds); |
|
|
|
} |
|
|
|
|
|
|
|
var newKF = new AnimatorKeyFrame(handler, cue); |
|
|
|
|