@tmagic/stage 1.2.0-beta.24 → 1.2.0-beta.26

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.
@@ -745,6 +745,7 @@ class StageDragResize extends MoveableOptionsManager {
745
745
  moveable;
746
746
  dragStatus = StageDragStatus.END;
747
747
  dragResizeHelper;
748
+ disabledDragStart;
748
749
  getRenderDocument;
749
750
  markContainerEnd;
750
751
  delayedMarkContainer;
@@ -753,6 +754,7 @@ class StageDragResize extends MoveableOptionsManager {
753
754
  this.getRenderDocument = config.getRenderDocument;
754
755
  this.markContainerEnd = config.markContainerEnd;
755
756
  this.delayedMarkContainer = config.delayedMarkContainer;
757
+ this.disabledDragStart = config.disabledDragStart;
756
758
  this.dragResizeHelper = new DragResizeHelper({
757
759
  container: config.container,
758
760
  updateDragEl: config.updateDragEl
@@ -769,7 +771,7 @@ class StageDragResize extends MoveableOptionsManager {
769
771
  } else {
770
772
  this.updateMoveable(el);
771
773
  }
772
- if (event) {
774
+ if (event && !this.disabledDragStart) {
773
775
  this.moveable?.dragStart(event);
774
776
  }
775
777
  }
@@ -1202,6 +1204,7 @@ class ActionManager extends EventEmitter {
1202
1204
  this.isContainer = config.isContainer;
1203
1205
  this.dr = new StageDragResize({
1204
1206
  container: config.container,
1207
+ disabledDragStart: config.disabledDragStart,
1205
1208
  getRootContainer: config.getRootContainer,
1206
1209
  getRenderDocument: config.getRenderDocument,
1207
1210
  updateDragEl: config.updateDragEl,
@@ -2087,6 +2090,7 @@ class StageCore extends EventEmitter$1 {
2087
2090
  moveableOptions: config.moveableOptions,
2088
2091
  multiMoveableOptions: config.multiMoveableOptions,
2089
2092
  container: this.mask.content,
2093
+ disabledDragStart: config.disabledDragStart,
2090
2094
  canSelect: config.canSelect,
2091
2095
  isContainer: config.isContainer,
2092
2096
  updateDragEl: config.updateDragEl,