aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
index 7e7a5c2c6..e44c37873 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -385,17 +385,17 @@ export class MarqueeView extends ObservableReactComponent<SubCollectionViewProps
this.hideMarquee();
});
- @undoBatch
- spreadCards = action((e: KeyboardEvent | React.PointerEvent | undefined) => {
- const selected = this.marqueeSelect(false);
- SelectionManager.DeselectAll();
- selected.forEach(d => this._props.removeDocument?.(d));
- const newCollection = DocUtils.spreadCards(selected, this.Bounds.left + this.Bounds.width / 2, this.Bounds.top + this.Bounds.height / 2)!;
- this._props.addDocument?.(newCollection);
- this._props.selectDocuments([newCollection]);
- MarqueeOptionsMenu.Instance.fadeOut(true);
- this.hideMarquee();
- });
+ // @undoBatch
+ // spreadCards = action((e: KeyboardEvent | React.PointerEvent | undefined) => {
+ // const selected = this.marqueeSelect(false);
+ // SelectionManager.DeselectAll();
+ // selected.forEach(d => this._props.removeDocument?.(d));
+ // const newCollection = DocUtils.spreadCards(selected, this.Bounds.left + this.Bounds.width / 2, this.Bounds.top + this.Bounds.height / 2)!;
+ // this._props.addDocument?.(newCollection);
+ // this._props.selectDocuments([newCollection]);
+ // MarqueeOptionsMenu.Instance.fadeOut(true);
+ // this.hideMarquee();
+ // });
/**
* This triggers the TabDocView.PinDoc method which is the universal method