@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.
@@ -4697,32 +4697,12 @@ 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
4700
  // if (
4707
4701
  // obj.getBoundingRect().width > obj.canvas.height ||
4708
4702
  // obj.getBoundingRect().height > obj.canvas.width
4709
4703
  // ) {
4710
4704
  // return;
4711
4705
  // }
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);
4726
4706
  obj.setCoords();
4727
4707
  if (obj.getBoundingRect().top < 0 || obj.getBoundingRect().left < 0) {
4728
4708
  obj.top = Math.max(obj.top, obj.top - obj.getBoundingRect().top);