Commit cf9ed1e4 authored by toby's avatar toby

fix pause state bug

parent 6fb38efa
......@@ -72,7 +72,6 @@ class ViewController: UIViewController {
},
completion: {
(finished: Bool) -> Void in
self.appState.paused = false
self.appState.animating = false
self.backgroundTransition = randomTransition()
......@@ -97,7 +96,7 @@ class ViewController: UIViewController {
},
completion: {
(finished: Bool) -> Void in
if(!self.appState.paused) {
if(!self.appState.paused && !self.appState.animating) {
self.animateBackground()
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment