@teachinglab/omd 0.7.18 → 0.7.19

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.
@@ -972,9 +972,12 @@ export class PointerTool extends Tool {
972
972
  selectionLayer.removeChild(selectionLayer.firstChild);
973
973
  }
974
974
 
975
- // If the selection is pure-OMD (no strokes), ResizeHandleManager already draws
976
- // the selection border + handles — don't draw a second box on top of it.
977
- if (this.selectedSegments.size === 0 && this.selectedOMDElements.size > 0) {
975
+ // If a single OMD element was directly clicked, ResizeHandleManager already draws
976
+ // its own selection border + handles — don't draw a second box on top of it.
977
+ // For drag-box selections (no active resizeHandleManager element), always draw the box.
978
+ if (this.selectedSegments.size === 0 &&
979
+ this.selectedOMDElements.size > 0 &&
980
+ this.resizeHandleManager?.selectedElement !== null) {
978
981
  return;
979
982
  }
980
983
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teachinglab/omd",
3
- "version": "0.7.18",
3
+ "version": "0.7.19",
4
4
  "description": "omd",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",