Skip to content

Commit

Permalink
Merge branch 'multiple-games' of https://github.com/zamfofex/pgn-viewer
Browse files Browse the repository at this point in the history
… into multiple-games

* 'multiple-games' of https://github.com/zamfofex/pgn-viewer:
  add option to show multiple games from a PGN
  • Loading branch information
ornicar committed Oct 23, 2023
2 parents 99c4ffa + 70869d8 commit 2f4f5e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pgnViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default class PgnViewer {
selectIndex = (i: number) => {
this.selectedGame = Math.max(0, Math.min(this.games.length - 1, i));
this.path = Path.root;
this.redrawGround();
this.redraw();
};

Expand Down

0 comments on commit 2f4f5e6

Please sign in to comment.