cm-chessboard 4.0.3 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -374,17 +374,11 @@ export class ChessboardView {
374
374
  this.currentAnimation = new ChessboardPiecesAnimation(this, nextAnimation.fromSquares, nextAnimation.toSquares, this.chessboard.props.animationDuration / (this.animationQueue.length + 1), () => {
375
375
  if (!this.moveInput.draggablePiece) {
376
376
  this.drawPieces(nextAnimation.toSquares)
377
- this.animationRunning = false
378
- this.nextPieceAnimationInQueue()
379
- if (nextAnimation.callback) {
380
- nextAnimation.callback()
381
- }
382
- } else {
383
- this.animationRunning = false
384
- this.nextPieceAnimationInQueue()
385
- if (nextAnimation.callback) {
386
- nextAnimation.callback()
387
- }
377
+ }
378
+ this.animationRunning = false
379
+ this.nextPieceAnimationInQueue()
380
+ if (nextAnimation.callback) {
381
+ nextAnimation.callback()
388
382
  }
389
383
  })
390
384
  }