aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-21 09:46:09 -0400
committerbobzel <zzzman@gmail.com>2020-09-21 09:46:09 -0400
commit6ecfe48643917e5dc774ff39a84c5bef47f0d3b9 (patch)
treece6c9da7aa112e8e6b30da5b7288a875b4d46217
parent28a3408a07d4341c52595f36dcb3d3bd3f9e3aee (diff)
fixed honoring dropAction for documents dragged by their title.
-rw-r--r--src/client/views/DocumentDecorations.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 96eba1869..795208c91 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -139,7 +139,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
dragData.offset = dragDocView.props.ScreenToLocalTransform().scale(dragDocView.props.ContentScaling()).transformDirection(e.x - left, e.y - top);
dragData.moveDocument = dragDocView.props.moveDocument;
dragData.isSelectionMove = true;
- dragData.dropAction = dragDocView.props.Document.dropAction as dropActionType;
+ dragData.dropAction = dragDocView.props.dropAction as dropActionType;
this.Interacting = true;
this._hidden = true;
DragManager.StartDocumentDrag(SelectionManager.SelectedDocuments().map(dv => dv.ContentDiv!), dragData, e.x, e.y, {