labellife-design-tool 2.3.9 → 2.4.0

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