From 5971cd9105f4944606e4676da61e6aea9bf606dd Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:56:51 +0300 Subject: [PATCH] Update animation.go --- animation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animation.go b/animation.go index 41d8423..1bab006 100644 --- a/animation.go +++ b/animation.go @@ -318,7 +318,7 @@ func NewTransitionAnimation(timingFunc string, duration float64, delay float64) // - direction - specifies whether an animation should play forward, backward, // or alternate back and forth between playing the sequence forward and backward. Only the following values ​​can be used: // 0 (NormalAnimation), 1 (ReverseAnimation), 2 (AlternateAnimation), and 3 (AlternateReverseAnimation); -// - iterationCount - specifies the number of times an animation sequence should be played before stopping; +// - iterationCount - specifies the number of times an animation sequence should be played before stopping. A negative value specifies infinite repetition; // - property - describes a scenario for changing a View's property. func NewAnimation(id string, timingFunc string, duration float64, delay float64, direction int, iterationCount int, property ...AnimatedProperty) AnimationProperty { animation := new(animationData) @@ -349,7 +349,7 @@ func NewAnimation(id string, timingFunc string, duration float64, delay float64, animation.Set(AnimationDirection, direction) } - if iterationCount > 0 { + if iterationCount != 0 { animation.Set(IterationCount, iterationCount) }