Skip to content

Commit

Permalink
Set completed to false when changing frame manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Garrido committed Jun 7, 2017
1 parent 475dd70 commit f75e708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/LightCinematic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ class LightCinematic
public goto(frame:number):void
{
this._currentFrame = frame;
this._completed = false;
this._ctx.clearRect(0, 0, this._ctx.canvas.width, this._ctx.canvas.height );
this.drawImage(frame);
}
Expand Down

0 comments on commit f75e708

Please sign in to comment.