@threedddplus/logoeditor 0.0.79 → 0.0.81

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.
@@ -4689,32 +4689,12 @@ var initCanvas = function initCanvas() {
4689
4689
  var onObjectMoving = function onObjectMoving(e) {
4690
4690
  use3dddPlus.getState().updateModifaction(false);
4691
4691
  var obj = e.target;
4692
- if (isNaN(e.pointer.x)) {
4693
- return;
4694
- }
4695
- if (isNaN(e.pointer.y)) {
4696
- return;
4697
- }
4698
4692
  // if (
4699
4693
  // obj.getBoundingRect().width > obj.canvas.height ||
4700
4694
  // obj.getBoundingRect().height > obj.canvas.width
4701
4695
  // ) {
4702
4696
  // return;
4703
4697
  // }
4704
- // if (obj.left < 1 || obj.top < 1) {
4705
- // obj.top = obj.top + 0.5;
4706
- // obj.left = obj.left + 0.5;
4707
- // obj.setCoords();
4708
- // }
4709
- // if (isNaN(obj.left)) {
4710
- // obj.left = -1;
4711
- // obj.setCoords();
4712
- // }
4713
- // if (isNaN(obj.top)) {
4714
- // obj.top = -1;
4715
- // obj.setCoords();
4716
- // }
4717
- console.log(e);
4718
4698
  obj.setCoords();
4719
4699
  if (obj.getBoundingRect().top < 0 || obj.getBoundingRect().left < 0) {
4720
4700
  obj.top = Math.max(obj.top, obj.top - obj.getBoundingRect().top);