// Cancel current drawing and circles, if any
this.cancelResetArrows();
// Cancel current drawing and circles, if any
this.cancelResetArrows();
if (!this.selectedPiece) return;
// Drag'n drop. Selected piece is no longer needed:
this.selectedPiece.parentNode.removeChild(this.selectedPiece);
delete this.selectedPiece;
this.selectedPiece = null;
this.processMoveAttempt(e);
if (!this.selectedPiece) return;
// Drag'n drop. Selected piece is no longer needed:
this.selectedPiece.parentNode.removeChild(this.selectedPiece);
delete this.selectedPiece;
this.selectedPiece = null;
this.processMoveAttempt(e);
this.movingArrow = { x: -1, y: -1 };
this.processArrowAttempt(e);
}
this.movingArrow = { x: -1, y: -1 };
this.processArrowAttempt(e);
}