@threedddplus/logoeditor 0.0.68 → 0.0.69

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.
@@ -4687,15 +4687,10 @@ var initCanvas = function initCanvas() {
4687
4687
  getAllColors();
4688
4688
  };
4689
4689
  var onObjectMoving = function onObjectMoving(e) {
4690
- console.log('onMoveing', e);
4691
4690
  use3dddPlus.getState().updateModifaction(false);
4692
4691
  var obj = e.target;
4693
- // if (
4694
- // obj.getBoundingRect().width > obj.canvas.height ||
4695
- // obj.getBoundingRect().height > obj.canvas.width
4696
- // ) {
4697
- // return;
4698
- // }
4692
+ if (!e.pointer.x) return;
4693
+ if (!e.pointer.y) return;
4699
4694
  obj.setCoords();
4700
4695
  if (obj.getBoundingRect().top < 0 || obj.getBoundingRect().left < 0) {
4701
4696
  obj.top = Math.max(obj.top, obj.top - obj.getBoundingRect().top);