@vectoriox/iox-builder 3.3.1 → 3.3.2
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.
|
@@ -1418,6 +1418,9 @@ class DragEngineService {
|
|
|
1418
1418
|
this._sourceEl = el;
|
|
1419
1419
|
this._isDragging = true;
|
|
1420
1420
|
this._rootEscapeActiveFor = null;
|
|
1421
|
+
// Suppress native text selection for the duration of the drag — without this,
|
|
1422
|
+
// dragging the pointer across any text (canvas or sidebar) selects/highlights it.
|
|
1423
|
+
document.body.classList.add('iox-dragging');
|
|
1421
1424
|
this._lastPointerX = event.client.x;
|
|
1422
1425
|
this._lastPointerY = event.client.y;
|
|
1423
1426
|
this.isDragging$.next(true);
|
|
@@ -1501,6 +1504,7 @@ class DragEngineService {
|
|
|
1501
1504
|
this._updateIndicator();
|
|
1502
1505
|
}
|
|
1503
1506
|
_onDragEnd(event) {
|
|
1507
|
+
document.body.classList.remove('iox-dragging');
|
|
1504
1508
|
// Restore original element visibility BEFORE Angular re-renders on drop.
|
|
1505
1509
|
if (this._sourceEl) {
|
|
1506
1510
|
this._sourceEl.classList.remove('iox-drag-active-source');
|