aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorAubrey Li <Aubrey-Li>2021-12-02 15:06:27 -0500
committerAubrey Li <Aubrey-Li>2021-12-02 15:06:27 -0500
commit3ce1455986d4f42c75c8aabc8aec56805e655747 (patch)
tree82eb891e8f7093cf60962a6fb92a1ef642a4c194 /src/client/util/DragManager.ts
parent657a4c11b6b1526bacc79fbefe4b461e932c75e7 (diff)
parent2cb18e75aa487ff98086e15fef93e2f549c30496 (diff)
Merge branch 'trails-aubrey' of https://github.com/brown-dash/Dash-Web into trails-aubrey
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index f5704d2bf..ae3fa3170 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -335,8 +335,10 @@ export namespace DragManager {
}
export let docsBeingDragged: Doc[] = [];
export let CanEmbed = false;
+ export let DocDragData: DocumentDragData | undefined;
export function StartDrag(eles: HTMLElement[], dragData: { [id: string]: any }, downX: number, downY: number, options?: DragOptions, finishDrag?: (dropData: DragCompleteEvent) => void) {
if (dragData.dropAction === "none") return;
+ DocDragData = dragData instanceof DocumentDragData ? dragData : undefined;
const batch = UndoManager.StartBatch("dragging");
eles = eles.filter(e => e);
CanEmbed = dragData.canEmbed || false;