diff options
author | bobzel <zzzman@gmail.com> | 2022-09-15 12:27:26 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-15 12:27:26 -0400 |
commit | 02a26630710569f345a5f3a6cb75fcf46c729f17 (patch) | |
tree | 5e9cb479d7e3dfb76263071bde8f803e9ddcd3e0 | |
parent | 72e59f37670c01d69b4570baff529f741730bf80 (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
-rw-r--r-- | src/client/views/collections/TabDocView.tsx | 2 |
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 |