diff options
author | Stanley Yip <33562077+yipstanley@users.noreply.github.com> | 2019-07-17 14:56:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 14:56:52 +0000 |
commit | 1610f9e7bfac3de61d3b6de108a0664e1266e5ba (patch) | |
tree | 78cb59565eb78955e089a11d96011da79e0c81c7 /src/client/views/nodes/LinkMenuItem.tsx | |
parent | ba25d48d52f6db6021f5149e39021f651af22317 (diff) | |
parent | 253813f3ed75c5bbc08f32a1e822ff922bfe185b (diff) |
Merge pull request #212 from browngraphicslab/small_fix_0716
fixed undo on panning
Diffstat (limited to 'src/client/views/nodes/LinkMenuItem.tsx')
-rw-r--r-- | src/client/views/nodes/LinkMenuItem.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/LinkMenuItem.tsx b/src/client/views/nodes/LinkMenuItem.tsx index 23758a1c0..659b56e5d 100644 --- a/src/client/views/nodes/LinkMenuItem.tsx +++ b/src/client/views/nodes/LinkMenuItem.tsx @@ -46,7 +46,7 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { DocumentManager.Instance.jumpToDocument(jumpToDoc, e.altKey, undefined, undefined, NumCast((this.props.destinationDoc === self.props.linkDoc.anchor2 ? self.props.linkDoc.anchor2Page : self.props.linkDoc.anchor1Page))); } else if (!((this.props.destinationDoc === self.props.linkDoc.anchor2 && targetContext) || (this.props.destinationDoc === self.props.linkDoc.anchor1 && sourceContext))) { - CollectionDockingView.Instance.AddRightSplit(jumpToDoc, undefined); + DocumentManager.Instance.jumpToDocument(jumpToDoc, e.altKey, false, document => CollectionDockingView.Instance.AddRightSplit(document, undefined)); } else { if (this.props.destinationDoc === self.props.linkDoc.anchor2 && targetContext) { DocumentManager.Instance.jumpToDocument(targetContext, e.altKey, false, document => CollectionDockingView.Instance.AddRightSplit(document, undefined)); |