Browse Source
Fix the transitions bug by pushing zero immediately after Subscription.
Thanks to sir @grokys for this fix.
Fix XML Doc on Animatable.cs.
pull/1793/head
Jumar Macato
8 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
2 changed files with
3 additions and
2 deletions
-
src/Avalonia.Animation/Animatable.cs
-
src/Avalonia.Animation/TransitionsEngine.cs
|
|
|
@ -11,7 +11,7 @@ using Avalonia.Data; |
|
|
|
namespace Avalonia.Animation |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Base class for control which can have property transitions.
|
|
|
|
/// Base class for all animatable objects.
|
|
|
|
/// </summary>
|
|
|
|
public class Animatable : AvaloniaObject |
|
|
|
{ |
|
|
|
|
|
|
|
@ -37,7 +37,7 @@ namespace Avalonia.Animation |
|
|
|
|
|
|
|
PublishNext(interpVal); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override void Unsubscribed() |
|
|
|
{ |
|
|
|
timerSubscription?.Dispose(); |
|
|
|
@ -49,6 +49,7 @@ namespace Avalonia.Animation |
|
|
|
timerSubscription = Timing |
|
|
|
.AnimationsTimer |
|
|
|
.Subscribe(t => TimerTick(t)); |
|
|
|
PublishNext(0.0d); |
|
|
|
} |
|
|
|
} |
|
|
|
} |