makes sure that animation is paused when steps is one
This commit is contained in:
parent
98a37771ca
commit
204df7829d
@ -46,6 +46,9 @@ var cancelAnimationFrame = global.cancelAnimationFrame
|
||||
this.running = true;
|
||||
requestAnimationFrame(this._tick);
|
||||
this.options.onStart && this.options.onStart();
|
||||
if(this.options.steps === 1){
|
||||
this.running = false;
|
||||
}
|
||||
},
|
||||
|
||||
isRunning: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user