@teachinglab/omd 0.7.11 → 0.7.12

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.
@@ -95,6 +95,12 @@ export class SelectTool extends Tool {
95
95
  this.dragStartPoint = { x: event.x, y: event.y };
96
96
  this.potentialDeselect = segmentSelection;
97
97
 
98
+ // Also enable OMD dragging if we have selected OMD elements
99
+ if (this.selectedOMDElements.size > 0) {
100
+ this.isDraggingOMD = true;
101
+ this.startPoint = { x: event.x, y: event.y };
102
+ }
103
+
98
104
  // Set isDrawing so we get pointermove events
99
105
  if (this.canvas.eventManager) {
100
106
  this.canvas.eventManager.isDrawing = true;
@@ -127,6 +133,13 @@ export class SelectTool extends Tool {
127
133
  this.draggedOMDElement = omdElement; // Primary drag target
128
134
  this.startPoint = { x: event.x, y: event.y };
129
135
 
136
+ // Also enable stroke dragging if we have selected strokes
137
+ if (this.selectedSegments.size > 0) {
138
+ this.isDraggingStrokes = true;
139
+ this.dragStartPoint = { x: event.x, y: event.y };
140
+ this.hasSeparatedForDrag = false;
141
+ }
142
+
130
143
  // Show resize handles if this is the only selected element
131
144
  if (this.selectedOMDElements.size === 1) {
132
145
  this.resizeHandleManager.selectElement(omdElement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teachinglab/omd",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "description": "omd",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",