From 2169c5f77ffc824305fc438d06c00efb54a28886 Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Sat, 27 Apr 2019 14:49:37 -0400 Subject: hide doc decorations when dragging. --- src/client/views/DocumentDecorations.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 0ea3bfc90..cacb9aead 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -146,6 +146,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> this.Interacting = this._dragging = true; document.removeEventListener("pointermove", this.onBackgroundMove); document.removeEventListener("pointerup", this.onBackgroundUp); + this.Hidden = true; DragManager.StartDocumentDrag(SelectionManager.SelectedDocuments().map(docView => docView.ContentDiv!), dragData, e.x, e.y, { handlers: { dragComplete: action(() => this.Interacting = this._dragging = false), @@ -156,6 +157,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> } onBackgroundUp = (e: PointerEvent): void => { + this.Hidden = true; document.removeEventListener("pointermove", this.onBackgroundMove); document.removeEventListener("pointerup", this.onBackgroundUp); e.stopPropagation(); -- cgit v1.2.3-70-g09d2