diff --git a/js/drawingtools/Move.js b/js/drawingtools/Move.js index a42d8c95..f24074f7 100644 --- a/js/drawingtools/Move.js +++ b/js/drawingtools/Move.js @@ -28,9 +28,7 @@ ns.Move.prototype.moveToolAt = function(col, row, color, frame, overlay) { var colDiff = col - this.startCol, rowDiff = row - this.startRow; - if (colDiff != 0 || rowDiff != 0) { - this.shiftFrame(colDiff, rowDiff, frame, this.frameClone); - } + this.shiftFrame(colDiff, rowDiff, frame, this.frameClone); }; ns.Move.prototype.shiftFrame = function (colDiff, rowDiff, frame, reference) { diff --git a/js/drawingtools/selectiontools/BaseSelect.js b/js/drawingtools/selectiontools/BaseSelect.js index ae454c2b..7c2fe29c 100644 --- a/js/drawingtools/selectiontools/BaseSelect.js +++ b/js/drawingtools/selectiontools/BaseSelect.js @@ -131,13 +131,13 @@ var deltaRow = row - this.lastRow; var colDiff = col - this.startCol, rowDiff = row - this.startRow; - if (colDiff != 0 || rowDiff != 0) { - // Shifting selection on overlay frame: - this.shiftOverlayFrame_(colDiff, rowDiff, overlay, this.overlayFrameReference); + + // Shifting selection on overlay frame: + this.shiftOverlayFrame_(colDiff, rowDiff, overlay, this.overlayFrameReference); + + // Update selection model: + $.publish(Events.SELECTION_MOVE_REQUEST, [deltaCol, deltaRow]); - // Update selection model: - $.publish(Events.SELECTION_MOVE_REQUEST, [deltaCol, deltaRow]); - } this.lastCol = col; this.lastRow = row; };