@threedddplus/logoeditor 0.0.78 → 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,21 +4697,32 @@ 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(obj.left)) {
4701
- obj.left = -1;
4702
- obj.setCoords();
4700
+ if (isNaN(e.pointer.x)) {
4701
+ return;
4703
4702
  }
4704
- if (isNaN(obj.top)) {
4705
- obj.top = -1;
4706
- obj.setCoords();
4703
+ if (isNaN(e.pointer.y)) {
4704
+ return;
4707
4705
  }
4708
- console.log(e);
4709
4706
  // if (
4710
4707
  // obj.getBoundingRect().width > obj.canvas.height ||
4711
4708
  // obj.getBoundingRect().height > obj.canvas.width
4712
4709
  // ) {
4713
4710
  // return;
4714
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
+ // }
4717
+ // if (isNaN(obj.left)) {
4718
+ // obj.left = -1;
4719
+ // obj.setCoords();
4720
+ // }
4721
+ // if (isNaN(obj.top)) {
4722
+ // obj.top = -1;
4723
+ // obj.setCoords();
4724
+ // }
4725
+ console.log(e);
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);