diff options
author | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-06-17 12:02:14 -0400 |
---|---|---|
committer | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-06-17 12:02:14 -0400 |
commit | ad4d67f2ace0b658917ff63e2ff83f95022cc2d4 (patch) | |
tree | b4397afe63115932a1c96f3c9cb0bb45dab71553 /src | |
parent | 585e6ece3c2bee7b5a747ec571c5c2af1861d324 (diff) |
things are getting silly
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionCardDeckView.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
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<Doc, DocumentView>(); + _draggerRef = React.createRef<HTMLDivElement>(); @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); |