diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-30 12:16:24 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-30 12:16:24 -0400 |
| commit | 58f83cc1eef844420e5b418011231f995c9cf043 (patch) | |
| tree | e610c7b8ad166054ba5a3579371200565131c98b /src/client/util/DragManager.ts | |
| parent | b1ddfbe0a393dce03a8e5da9d70e9a46dc3b9755 (diff) | |
fixed dragging aliases using alias button. made dragging title of doc decorations or alias button allow doc to be embedded
Diffstat (limited to 'src/client/util/DragManager.ts')
| -rw-r--r-- | src/client/util/DragManager.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index 0169b07fc..3a0f306f3 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -129,6 +129,7 @@ export namespace DragManager { treeViewDoc?: Doc; dontHideOnDrop?: boolean; offset: number[]; + canEmbed?: boolean; userDropAction: dropActionType; // the user requested drop action -- this will be honored as specified by modifier keys defaultDropAction?: dropActionType; // an optionally specified default drop action when there is no user drop actionl - this will be honored if there is no user drop action dropAction: dropActionType; // a drop action request by the initiating code. the actual drop action may be different -- eg, if the request is 'alias', but the document is dropped within the same collection, the drop action will be switched to 'move' @@ -324,7 +325,7 @@ export namespace DragManager { if (dragData.dropAction === "none") return; const batch = UndoManager.StartBatch("dragging"); eles = eles.filter(e => e); - CanEmbed = false; + CanEmbed = dragData.canEmbed || false; if (!dragDiv) { dragDiv = document.createElement("div"); dragDiv.className = "dragManager-dragDiv"; |
