Skip to content

Commit

Permalink
#351 Only render last 40 states.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielscottjames committed Apr 26, 2017
1 parent a303582 commit 028ca91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/input-panel/input-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class ProgramResult {
public steps = 0;

public getStates() {
return this.output.states.slice(0, this.steps);
return this.output.states.slice(Math.max(0, this.steps - 40), this.steps);
}

public get totalSteps() {
Expand Down

0 comments on commit 028ca91

Please sign in to comment.