@threedddplus/logoeditor 0.0.77 → 0.0.79

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,6 +4697,23 @@ 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 (isNaN(e.pointer.x)) {
4701
+ return;
4702
+ }
4703
+ if (isNaN(e.pointer.y)) {
4704
+ return;
4705
+ }
4706
+ // if (
4707
+ // obj.getBoundingRect().width > obj.canvas.height ||
4708
+ // obj.getBoundingRect().height > obj.canvas.width
4709
+ // ) {
4710
+ // return;
4711
+ // }
4712
+ // if (obj.left < 1 || obj.top < 1) {
4713
+ // obj.top = obj.top + 0.5;
4714
+ // obj.left = obj.left + 0.5;
4715
+ // obj.setCoords();
4716
+ // }
4700
4717
  // if (isNaN(obj.left)) {
4701
4718
  // obj.left = -1;
4702
4719
  // obj.setCoords();
@@ -4706,12 +4723,6 @@ var initCanvas = function initCanvas() {
4706
4723
  // obj.setCoords();
4707
4724
  // }
4708
4725
  console.log(e);
4709
- // if (
4710
- // obj.getBoundingRect().width > obj.canvas.height ||
4711
- // obj.getBoundingRect().height > obj.canvas.width
4712
- // ) {
4713
- // return;
4714
- // }
4715
4726
  obj.setCoords();
4716
4727
  if (obj.getBoundingRect().top < 0 || obj.getBoundingRect().left < 0) {
4717
4728
  obj.top = Math.max(obj.top, obj.top - obj.getBoundingRect().top);