aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-02-23 23:14:13 -0500
committerlaurawilsonri <laura_wilson@brown.edu>2019-02-23 23:14:13 -0500
commit3ad38f0445178bdfe025e4f6da60f68f03876f56 (patch)
tree1ae0eccce9e44aa23028f7da4dcb0500932b0807 /src/client/util/DragManager.ts
parentc2400538b8ca4b68eb8767c8976531202f2ee748 (diff)
letter is typed into box, but the cursor isn't positioned correctly and the box isn't selected
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index f4dcce7c8..dd8a63725 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -63,6 +63,7 @@ export namespace DragManager {
let _lastPointerX: number = 0;
let _lastPointerY: number = 0;
export function StartDrag(ele: HTMLElement, dragData: { [id: string]: any }, options: DragOptions) {
+
if (!dragDiv) {
dragDiv = document.createElement("div");
DragManager.Root().appendChild(dragDiv);