@tmagic/stage 1.2.0-beta.25 → 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.
@@ -750,6 +750,7 @@
750
750
  moveable;
751
751
  dragStatus = StageDragStatus.END;
752
752
  dragResizeHelper;
753
+ disabledDragStart;
753
754
  getRenderDocument;
754
755
  markContainerEnd;
755
756
  delayedMarkContainer;
@@ -758,6 +759,7 @@
758
759
  this.getRenderDocument = config.getRenderDocument;
759
760
  this.markContainerEnd = config.markContainerEnd;
760
761
  this.delayedMarkContainer = config.delayedMarkContainer;
762
+ this.disabledDragStart = config.disabledDragStart;
761
763
  this.dragResizeHelper = new DragResizeHelper({
762
764
  container: config.container,
763
765
  updateDragEl: config.updateDragEl
@@ -774,7 +776,7 @@
774
776
  } else {
775
777
  this.updateMoveable(el);
776
778
  }
777
- if (event) {
779
+ if (event && !this.disabledDragStart) {
778
780
  this.moveable?.dragStart(event);
779
781
  }
780
782
  }
@@ -1207,6 +1209,7 @@
1207
1209
  this.isContainer = config.isContainer;
1208
1210
  this.dr = new StageDragResize({
1209
1211
  container: config.container,
1212
+ disabledDragStart: config.disabledDragStart,
1210
1213
  getRootContainer: config.getRootContainer,
1211
1214
  getRenderDocument: config.getRenderDocument,
1212
1215
  updateDragEl: config.updateDragEl,
@@ -2092,6 +2095,7 @@
2092
2095
  moveableOptions: config.moveableOptions,
2093
2096
  multiMoveableOptions: config.multiMoveableOptions,
2094
2097
  container: this.mask.content,
2098
+ disabledDragStart: config.disabledDragStart,
2095
2099
  canSelect: config.canSelect,
2096
2100
  isContainer: config.isContainer,
2097
2101
  updateDragEl: config.updateDragEl,