Skip to content

Commit

Permalink
Reorder functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored Dec 29, 2024
1 parent 274dc9d commit 4042e02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions animation.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ func (a *Animation) Start() {
CurrentApp().Driver().StartAnimation(a)
}

// Stop will end this animation and remove it from the run-loop.
func (a *Animation) Stop() {
CurrentApp().Driver().StopAnimation(a)
}

// Start registers the animation with the application run-loop and starts its execution.
func (i *IndefiniteAnimation) Start() {
i.setupAnimation()
i.animation.Start()
}

// Stop will end this animation and remove it from the run-loop.
func (a *Animation) Stop() {
CurrentApp().Driver().StopAnimation(a)
}

// Stop will end this animation and remove it from the run-loop.
func (i *IndefiniteAnimation) Stop() {
i.setupAnimation()
Expand Down

0 comments on commit 4042e02

Please sign in to comment.