aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-10-14 02:45:39 +0800
committerGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-10-14 02:45:39 +0800
commit80ccba05db32ca09ac513f3ec370f3deef873ce7 (patch)
treef64d2849e2a4ebc924be83df5a7490855d0e2ad7 /src/client/views/collections/CollectionStackingView.tsx
parent9a6610b22bb33eb27ad0bc9ad921e148ffa2af42 (diff)
update view (as button), doc.dragging q?
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index d41e0528d..3607b97d0 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -295,7 +295,7 @@ export class CollectionStackingView extends CollectionSubView<StackingDocument,
if (docs) {
newDocs.map((doc, i) => {
if (i === 0) {
- doc.dragging = false;
+ if (doc.presentationTargetDoc) doc.dragging = false; //glr: so it only applies to items in presentation
DragManager.docsBeingDragged = [];
if (targInd === -1) targInd = docs.length;
else targInd = docs.indexOf(this.filteredChildren[targInd]);
@@ -303,7 +303,7 @@ export class CollectionStackingView extends CollectionSubView<StackingDocument,
docs.splice(srcInd, 1);
docs.splice((targInd > srcInd ? targInd - 1 : targInd) + plusOne, 0, doc);
} else if (i < (newDocs.length / 2)) { //glr: for some reason dragged documents are duplicated
- doc.dragging = false;
+ if (doc.presentationTargetDoc) doc.dragging = false;
DragManager.docsBeingDragged = [];
if (targInd === -1) targInd = docs.length;
else targInd = docs.indexOf(newDocs[0]) + 1;