aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionPileView.tsx
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-04 18:03:15 -0700
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-04 18:03:15 -0700
commite641fd8c6f5a84800af173db02bd012eecb04b7a (patch)
tree9b1b224674d091a16076a0abc20f3d8e0774f4a8 /src/client/views/collections/CollectionPileView.tsx
parentd9deafd2f368137a01a424f898edf0dc4acd2eae (diff)
fixed autoScroll bug and fixed dragging in picture bug
Diffstat (limited to 'src/client/views/collections/CollectionPileView.tsx')
-rw-r--r--src/client/views/collections/CollectionPileView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionPileView.tsx b/src/client/views/collections/CollectionPileView.tsx
index 499f68bd2..e85aac2e3 100644
--- a/src/client/views/collections/CollectionPileView.tsx
+++ b/src/client/views/collections/CollectionPileView.tsx
@@ -36,7 +36,8 @@ 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" && !SnappingManager.GetIsDragging() ? -10 : "auto" }} >
+ const draggingSelf = this.props.isSelected();
+ return <div className="collectionPileView-innards" style={{ pointerEvents: this.layoutEngine() === "starburst" || (SnappingManager.GetIsDragging() && !draggingSelf) ? 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));