@threedddplus/logoeditor 0.0.69 → 0.0.71

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.
@@ -4697,8 +4697,15 @@ var initCanvas = function initCanvas() {
4697
4697
  var onObjectMoving = function onObjectMoving(e) {
4698
4698
  use3dddPlus.getState().updateModifaction(false);
4699
4699
  var obj = e.target;
4700
- if (!e.pointer.x) return;
4701
- if (!e.pointer.y) return;
4700
+ console.log(e);
4701
+ if (isNaN(e.pointer.x)) return;
4702
+ if (isNaN(e.pointer.y)) return;
4703
+ // if (
4704
+ // obj.getBoundingRect().width > obj.canvas.height ||
4705
+ // obj.getBoundingRect().height > obj.canvas.width
4706
+ // ) {
4707
+ // return;
4708
+ // }
4702
4709
  obj.setCoords();
4703
4710
  if (obj.getBoundingRect().top < 0 || obj.getBoundingRect().left < 0) {
4704
4711
  obj.top = Math.max(obj.top, obj.top - obj.getBoundingRect().top);