diff options
author | laurawilsonri <laura_wilson@brown.edu> | 2019-02-23 23:14:13 -0500 |
---|---|---|
committer | laurawilsonri <laura_wilson@brown.edu> | 2019-02-23 23:14:13 -0500 |
commit | 3ad38f0445178bdfe025e4f6da60f68f03876f56 (patch) | |
tree | 1ae0eccce9e44aa23028f7da4dcb0500932b0807 /src/client/util/DragManager.ts | |
parent | c2400538b8ca4b68eb8767c8976531202f2ee748 (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.ts | 1 |
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); |