diff options
| author | bobzel <zzzman@gmail.com> | 2024-10-08 23:07:52 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-10-08 23:07:52 -0400 |
| commit | b9fda86731a01ebfc3f21ebdd4eaf43a1c9eccc6 (patch) | |
| tree | 25ccf7f509111dc96b019b9c495e4a956dcbcf41 /src/client/views/collections/CollectionCardDeckView.tsx | |
| parent | 09b722789afa5d7c5edfc701978f17e4745113bc (diff) | |
yet another fix to cardView to make animations smooth - need to specifically target hidingDecorations without going using IsResizing as a hack
Diffstat (limited to 'src/client/views/collections/CollectionCardDeckView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionCardDeckView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx index 0c2bcc580..92c69c3cf 100644 --- a/src/client/views/collections/CollectionCardDeckView.tsx +++ b/src/client/views/collections/CollectionCardDeckView.tsx @@ -22,6 +22,7 @@ import { GPTPopup, GPTPopupMode } from '../pdf/GPTPopup/GPTPopup'; import './CollectionCardDeckView.scss'; import { CollectionSubView, SubCollectionViewProps } from './CollectionSubView'; import { computedFn } from 'mobx-utils'; +import { DocumentDecorations } from '../DocumentDecorations'; enum cardSortings { Time = 'time', @@ -566,10 +567,10 @@ export class CollectionCardView extends CollectionSubView() { } else { // otherwise, turn off documentDecorations becase we're in a selection transition and want to avoid artifacts. // Turn them back on when the animation has completed and the render and backend structures are in synch - SnappingManager.SetIsResizing(doc[Id]); + SnappingManager.SetHideDecorations(true); setTimeout( action(() => { - SnappingManager.SetIsResizing(undefined); + SnappingManager.SetHideDecorations(false); this._forceChildXf++; }), 1000 |
