From 377c4da04a67bd781ac3a192313ee92e9fdb984b Mon Sep 17 00:00:00 2001 From: aidahosa1 Date: Tue, 14 May 2024 10:17:04 -0400 Subject: may this ginger tea propell me to greatness amen --- .../collections/collectionFreeForm/MarqueeView.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') 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 { - 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 -- cgit v1.2.3-70-g09d2