aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-02-23 21:42:21 -0500
committerlaurawilsonri <laura_wilson@brown.edu>2019-02-23 21:42:21 -0500
commitc2400538b8ca4b68eb8767c8976531202f2ee748 (patch)
treecd7034e33e209d253b46d9763b03057ea4c65dad /src/client/views/nodes/CollectionFreeFormDocumentView.tsx
parent9cf013c5b64af47d5199ef8168a5af6c29461ed9 (diff)
everything works except text can't be set for textboxes
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r--src/client/views/nodes/CollectionFreeFormDocumentView.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
index a2fbe96d2..565deb145 100644
--- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -120,6 +120,7 @@ export class CollectionFreeFormDocumentView extends DocumentView {
document.removeEventListener("pointerup", this.onPointerUp)
document.addEventListener("pointerup", this.onPointerUp);
}
+
}
onPointerMove = (e: PointerEvent): void => {
@@ -137,11 +138,17 @@ export class CollectionFreeFormDocumentView extends DocumentView {
dragData["xOffset"] = e.x - rect.left;
dragData["yOffset"] = e.y - rect.top;
DragManager.StartDrag(this._mainCont.current, dragData, {
+
handlers: {
dragComplete: this.dragComplete,
},
hideSource: true
+
})
+ //remove preview cursor from collection
+ if (this.props.ContainingCollectionView != undefined && this.props.ContainingCollectionView instanceof CollectionFreeFormView) {
+ this.props.ContainingCollectionView.hidePreviewCursor();
+ }
}
}
e.stopPropagation();