aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-06-09 11:48:22 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-06-09 11:48:22 -0400
commit34d43b0d7ff1829514566e2b6b8514f6176e7c60 (patch)
treee20a2358d7feb64d9c11d76a91cedea31a6e6834 /src/client/views/collections/CollectionView.tsx
parentc878c35dc06c6f0c653390d95d18feeaf2dfabd1 (diff)
fixed keyFrame animation positioning issues when adding a doc at t != 0. added isInkMask field and inkStroke menu option to create an ink mask. added cantLeaveCollection flag.
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 3330abbc4..7f2b5ff8e 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -163,7 +163,8 @@ export class CollectionView extends Touchable<FieldViewProps & CollectionViewCus
if (Doc.AreProtosEqual(this.props.Document, targetCollection)) {
return true;
}
- return this.removeDocument(doc) ? addDocument(doc) : false;
+ const first = doc instanceof Doc ? doc : doc[0];
+ return !first?.cantLeaveCollection && this.removeDocument(doc) ? addDocument(doc) : false;
}
showIsTagged = () => {