@threedddplus/logoeditor 0.0.102 → 0.0.103

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.
@@ -5381,7 +5381,6 @@ var initCanvas = function initCanvas() {
5381
5381
  canv.on('object:scaling', function (e) {
5382
5382
  var obj = e.target;
5383
5383
  console.log("++++", e);
5384
- obj.setCoords();
5385
5384
  if (isNaN(e.pointer.x) || isNaN(e.pointer.y)) {
5386
5385
  obj.set({
5387
5386
  top: use3dddPlus.getState().lastPosition.top,
@@ -5389,6 +5388,7 @@ var initCanvas = function initCanvas() {
5389
5388
  });
5390
5389
  return;
5391
5390
  }
5391
+ obj.setCoords();
5392
5392
  var brNew = obj.getBoundingRect();
5393
5393
  if (brNew.width + brNew.left + 45 >= obj.canvas.width || brNew.height + brNew.top + 10 >= obj.canvas.height || brNew.left < 45 || brNew.top < 10) {
5394
5394
  obj.left = left1;