diff --git a/src/canvas.class.js b/src/canvas.class.js index 5ff0b815e1d..3f6a64dfab6 100644 --- a/src/canvas.class.js +++ b/src/canvas.class.js @@ -841,14 +841,16 @@ if (lockScalingFlip && scaleX <= 0 && scaleX < target.scaleX) { forbidScalingX = true; + localMouse.x = 0; } if (lockScalingFlip && scaleY <= 0 && scaleY < target.scaleY) { forbidScalingY = true; + localMouse.y = 0; } if (by === 'equally' && !lockScalingX && !lockScalingY) { - forbidScalingX || forbidScalingY || (scaled = this._scaleObjectEqually(localMouse, target, transform, _dim)); + scaled = this._scaleObjectEqually(localMouse, target, transform, _dim); } else if (!by) { forbidScalingX || lockScalingX || (target.set('scaleX', scaleX) && (scaled = scaled || changeX));