diff options
author | ljungster <parkerljung@gmail.com> | 2022-06-03 13:13:24 -0500 |
---|---|---|
committer | ljungster <parkerljung@gmail.com> | 2022-06-03 13:13:24 -0500 |
commit | 29c52a0b7582288dfb9f318c78b5b2b1a4b8894a (patch) | |
tree | 1da4293f03916b1f0477947a674d68a37c36d237 /src/client/views/nodes/DocumentView.tsx | |
parent | 8abf2d620e72c1d2b1ab805d0f2a8a459d4d51a4 (diff) |
no longer changes drag color on other views
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 51820e77c..c0ee77e4e 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -412,10 +412,12 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps startDragging(x: number, y: number, dropAction: dropActionType, hideSource = false) { if (this._mainCont.current) { const dragData = new DragManager.DocumentDragData([this.props.Document]); - dragData.draggedDocuments.forEach((doc) => { - doc.backgroundColor = "#C9DAEF" - doc.opacity = 0.5 - }) + if (this.props.isNoteTakingView) { + dragData.draggedDocuments.forEach((doc) => { + doc.backgroundColor = "#C9DAEF" + doc.opacity = 0.5 + }) + } const [left, top] = this.props.ScreenToLocalTransform().scale(this.ContentScale).inverse().transformPoint(0, 0); dragData.offset = this.props.ScreenToLocalTransform().scale(this.ContentScale).transformDirection(x - left, y - top); dragData.dropAction = dropAction; |