@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
|
|
976
|
-
//
|
|
977
|
-
|
|
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
|
|