aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-08 23:07:52 -0400
committerbobzel <zzzman@gmail.com>2024-10-08 23:07:52 -0400
commitb9fda86731a01ebfc3f21ebdd4eaf43a1c9eccc6 (patch)
tree25ccf7f509111dc96b019b9c495e4a956dcbcf41 /src/client/views/collections
parent09b722789afa5d7c5edfc701978f17e4745113bc (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')
-rw-r--r--src/client/views/collections/CollectionCardDeckView.tsx5
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx2
2 files changed, 4 insertions, 3 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
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 0cc63d632..d8678eebc 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -138,7 +138,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
return this._props.layoutEngine?.() || StrCast(this.layoutDoc._layoutEngine);
}
@computed get childPointerEvents() {
- return SnappingManager.IsResizing
+ return falseSnappingManager.IsResizing
? 'none'
: (this._props.childPointerEvents?.() ??
(this._props.viewDefDivClick || //