Skip to content

Commit

Permalink
Fix concurrent moves
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarygami committed Aug 14, 2018
1 parent 9a260ac commit d8361bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scarygami/scary-cube",
"version": "1.0.0",
"version": "1.0.1",
"description": "scary-cube: Polymer Rubik's Cube",
"main": "scary-cube.js",
"homepage": "https://github.com/Scarygami/scary-cube/",
Expand Down
2 changes: 2 additions & 0 deletions scary-cube.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ class ScaryCube extends GestureEventListeners(LitElement) {
this._queue.push({move: move, silent: silent});
});
if (!this.moving) {
this.moving = true;
afterNextRender(this, this._boundMoveHandler);
}
}
Expand All @@ -593,6 +594,7 @@ class ScaryCube extends GestureEventListeners(LitElement) {
}
this._queue.push({move: move, silent: silent});
if (!this.moving) {
this.moving = true;
afterNextRender(this, this._boundMoveHandler);
}
}
Expand Down

0 comments on commit d8361bc

Please sign in to comment.