aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-13 16:59:22 -0400
committerGitHub <noreply@github.com>2020-10-13 16:59:22 -0400
commit69898c3205584db65f96e37dbdf85a76f850ce12 (patch)
tree560ca19d3b6864ebf6a19df67cfb5f0952f4c45b /src/client/views/collections/CollectionStackingView.tsx
parent072d1aa988f36220e4b74c0ee5413f0597a4b619 (diff)
parent6762d82992732eb14d7d2313d92cf0ae3a30f5a9 (diff)
Merge pull request #860 from browngraphicslab/presentation_v1
Presentation v1 presentation items redesign
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 72ce041e1..3607b97d0 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -295,12 +295,16 @@ export class CollectionStackingView extends CollectionSubView<StackingDocument,
if (docs) {
newDocs.map((doc, i) => {
if (i === 0) {
+ 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]);
const srcInd = docs.indexOf(doc);
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
+ if (doc.presentationTargetDoc) doc.dragging = false;
+ DragManager.docsBeingDragged = [];
if (targInd === -1) targInd = docs.length;
else targInd = docs.indexOf(newDocs[0]) + 1;
const srcInd = docs.indexOf(doc);