aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-02 17:43:22 -0700
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-02 17:43:22 -0700
commitbbd32b30d20629e808d3aac14ad6a60e81a48daf (patch)
treeaaaeb8ebd3f9f48e71bc8f752571cae420422ce6
parent70c89c314c7c5175d9913e725b2334ef46b43b86 (diff)
fixed adding images to collection
-rw-r--r--src/client/views/collections/CollectionPileView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionPileView.tsx b/src/client/views/collections/CollectionPileView.tsx
index 1fb1578bf..ecb4ee89f 100644
--- a/src/client/views/collections/CollectionPileView.tsx
+++ b/src/client/views/collections/CollectionPileView.tsx
@@ -38,7 +38,7 @@ export class CollectionPileView extends CollectionSubView(doc => doc) {
layoutEngine = () => StrCast(this.Document._pileLayoutEngine);
@computed get contents() {
- return <div className="collectionPileView-innards" style={{ pointerEvents: this.layoutEngine() === "starburst" ? undefined : "none", zIndex: this.layoutEngine() === "starburst" ? -10 : "auto" }} >
+ return <div className="collectionPileView-innards" style={{ pointerEvents: this.layoutEngine() === "starburst" || SnappingManager.GetIsDragging ? undefined : "none", zIndex: this.layoutEngine() === "starburst" && !SnappingManager.GetIsDragging() ? -10 : "auto" }} >
<CollectionFreeFormView {...this.props} layoutEngine={this.layoutEngine}
addDocument={(doc: Doc | Doc[]) => {
(doc instanceof Doc ? [doc] : doc).map((d) => DocUtils.iconify(d));