aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-15 12:27:26 -0400
committerbobzel <zzzman@gmail.com>2022-09-15 12:27:26 -0400
commit02a26630710569f345a5f3a6cb75fcf46c729f17 (patch)
tree5e9cb479d7e3dfb76263071bde8f803e9ddcd3e0 /src
parent72e59f37670c01d69b4570baff529f741730bf80 (diff)
default pin movement is now None if pinning doc view params (e.g., animation of x/y). otherwise, zoom tends to negate the animation
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/TabDocView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx
index b9262763f..7a075a7ff 100644
--- a/src/client/views/collections/TabDocView.tsx
+++ b/src/client/views/collections/TabDocView.tsx
@@ -231,7 +231,7 @@ export class TabDocView extends React.Component<TabDocViewProps> {
pinDoc.presentationTargetDoc = doc;
pinDoc.title = doc.title + ' - Slide';
pinDoc.data = new List<Doc>(); // the children of the alias' layout are the presentation slide children. the alias' data field might be children of a collection, PDF data, etc -- in any case we don't want the tree view to "see" this data
- pinDoc.presMovement = PresMovement.Zoom;
+ pinDoc.presMovement = pinProps?.pinDocView ? PresMovement.None : PresMovement.Zoom;
pinDoc.groupWithUp = false;
pinDoc.context = curPres;
// these should potentially all be props passed down by the CollectionTreeView to the TreeView elements. That way the PresBox could configure all of its children at render time