diff options
author | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-05-14 10:17:04 -0400 |
---|---|---|
committer | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-05-14 10:17:04 -0400 |
commit | 377c4da04a67bd781ac3a192313ee92e9fdb984b (patch) | |
tree | 90196ada0bd117faca3d78477dc12f3b2b294c82 | |
parent | 3c5b2353cb20843e968e51fdff58cc92f101ed51 (diff) |
may this ginger tea propell me to greatness amen
-rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 22 |
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 |