Skip to content

Commit

Permalink
Redraw on column change when animating
Browse files Browse the repository at this point in the history
  • Loading branch information
cutiful committed Mar 29, 2020
1 parent 49a905f commit b2646c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class FourInLine {
const column = Math.ceil(e.offsetX / (this.width / columns));
if (column !== this._selectedColumn) {
this._selectedColumn = column;
if (!this._active || this.paused) return;
if ((!this._active && !this.animating) || this.paused) return;

this.draw.call(this);
}
Expand Down

0 comments on commit b2646c9

Please sign in to comment.