labellife-design-tool 2.3.9 → 2.4.1

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.
@@ -546,15 +546,6 @@ var CropEditor = observer(function (_ref) {
546
546
  y: node.y()
547
547
  });
548
548
  };
549
- var handleRectDragEnd = function handleRectDragEnd(e) {
550
- var node = e.target;
551
- element.setCropRectAndClamp({
552
- x: node.x(),
553
- y: node.y(),
554
- width: rect.width,
555
- height: rect.height
556
- });
557
- };
558
549
 
559
550
  // Shared by both the live (onTransform) and final (onTransformEnd) handlers: reads the
560
551
  // Konva node's current scale, bakes it into width/height, resets the node's scale back to
@@ -640,8 +631,7 @@ var CropEditor = observer(function (_ref) {
640
631
  height: rect.height,
641
632
  stroke: "#ffffff",
642
633
  strokeWidth: 1.5,
643
- draggable: true,
644
- onDragEnd: handleRectDragEnd,
634
+ listening: false,
645
635
  onTransform: handleRectTransform,
646
636
  onTransformEnd: handleRectTransformEnd
647
637
  }), /*#__PURE__*/jsx(Transformer, {