Browse Source
Match CSS's behavior on selectors & animations.
pull/1885/head
Jumar Macato
8 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
5 additions and
10 deletions
-
src/Avalonia.Animation/Animator`1.cs
|
|
|
@ -37,16 +37,11 @@ namespace Avalonia.Animation |
|
|
|
if (!_isVerifiedAndConverted) |
|
|
|
VerifyConvertKeyFrames(); |
|
|
|
|
|
|
|
return match |
|
|
|
.DistinctUntilChanged() |
|
|
|
.Select(x => x ? RunKeyFrames(animation, control, onComplete) : null) |
|
|
|
.Buffer(2, 1) |
|
|
|
.Where(x => x.Count > 1) |
|
|
|
.Subscribe(x => |
|
|
|
{ |
|
|
|
if (animation.RepeatCount.IsLoop) |
|
|
|
x[0]?.Dispose(); |
|
|
|
}); |
|
|
|
return match.DistinctUntilChanged() |
|
|
|
.Select(x => x ? RunKeyFrames(animation, control, onComplete) : null) |
|
|
|
.Buffer(2, 1) |
|
|
|
.Where(x => x.Count > 1) |
|
|
|
.Subscribe(x => x[0]?.Dispose()); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|