aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-11-06 11:27:15 -0500
committerGitHub <noreply@github.com>2020-11-06 11:27:15 -0500
commitcecbf1d57412c0db3b0165f2e180fb5924a29ba8 (patch)
treef59e6b1bf32b03ceae4d330eae39be12f10748f5 /src/client/views/collections
parentd3e15778ae7d878f8bbd71a81d5ed77f641a3a1b (diff)
parent70d6aebaa5187332a6593a87aede54cd5d47a757 (diff)
Merge pull request #928 from browngraphicslab/presentation_v1
Presentation v1
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
index efbe85f1a..7040b5e56 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -407,6 +407,10 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque
if (!DocumentManager.Instance.getDocumentView(curPres)) {
CollectionDockingView.AddSplit(curPres, "right");
}
+ PresBox.Instance?._selectedArray.clear();
+ pinDoc && PresBox.Instance?._selectedArray.set(pinDoc, undefined); //Updates selected array
+ const index = PresBox.Instance?.childDocs.indexOf(pinDoc);
+ index && (curPres._itemIndex = index);
if (e instanceof KeyboardEvent ? e.key === "c" : true) {
const x = this.Bounds.left + this.Bounds.width / 2;
const y = this.Bounds.top + this.Bounds.height / 2;