From ad4d67f2ace0b658917ff63e2ff83f95022cc2d4 Mon Sep 17 00:00:00 2001 From: aidahosa1 Date: Mon, 17 Jun 2024 12:02:14 -0400 Subject: things are getting silly --- src/client/views/collections/CollectionCardDeckView.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/views/collections') diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx index 7ea345e10..bf814cb31 100644 --- a/src/client/views/collections/CollectionCardDeckView.tsx +++ b/src/client/views/collections/CollectionCardDeckView.tsx @@ -46,7 +46,9 @@ export class CollectionCardView extends CollectionSubView() { @observable _isLoading = false; @observable _hoveredNodeIndex = -1; @observable _docRefs = new ObservableMap(); + _draggerRef = React.createRef(); @observable _maxRowCount = 10; + @observable docsBeingDragged: number[] = []; static getButtonGroup(groupFieldKey: 'chat' | 'star' | 'idea' | 'like', doc: Doc): number | undefined { return Cast(doc[groupFieldKey], 'number', null); @@ -508,6 +510,7 @@ export class CollectionCardView extends CollectionSubView() { const amCards = this.overflowAmCardsCalc(realIndex); const isSelected = DocumentView.SelectedDocs().includes(doc); + const childScreenToLocal = () => { this._forceChildXf; const dref = this._docRefs.get(doc); -- cgit v1.2.3-70-g09d2