diff options
author | Geireann <60007097+geireann@users.noreply.github.com> | 2021-04-07 14:45:28 -0400 |
---|---|---|
committer | Geireann <60007097+geireann@users.noreply.github.com> | 2021-04-07 14:45:28 -0400 |
commit | eb2a394bd9e0f7a1aa9a72f328dcb3e1424b6fee (patch) | |
tree | d5b572877954082d673f3e92cb9f6a8433ca68d6 /src/client/views/LightboxView.tsx | |
parent | 6a73699a10edb842b2b5eba4ef05731772859f13 (diff) | |
parent | d0b37d7b5a8749cb6157d938ff576c7714c8ce0b (diff) |
Merge branch 'master' into demo_changes
Diffstat (limited to 'src/client/views/LightboxView.tsx')
-rw-r--r-- | src/client/views/LightboxView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx index efd3d733f..098c40df4 100644 --- a/src/client/views/LightboxView.tsx +++ b/src/client/views/LightboxView.tsx @@ -116,7 +116,7 @@ export class LightboxView extends React.Component<LightboxViewProps> { const target = LightboxView._docTarget = LightboxView._future?.pop(); const targetDocView = target && DocumentManager.Instance.getLightboxDocumentView(target); if (targetDocView && target) { - const l = DocUtils.MakeLinkToActiveAudio(targetDocView.ComponentView?.getAnchor?.() || target).lastElement(); + const l = DocUtils.MakeLinkToActiveAudio(() => targetDocView.ComponentView?.getAnchor?.() || target).lastElement(); l && (Cast(l.anchor2, Doc, null).backgroundColor = "lightgreen"); targetDocView.focus(target, { originalTarget: target, willZoom: true, scale: 0.9 }); if (LightboxView._history?.lastElement().target !== target) LightboxView._history?.push({ doc, target }); @@ -287,7 +287,7 @@ interface LightboxTourBtnProps { export class LightboxTourBtn extends React.Component<LightboxTourBtnProps> { render() { return this.props.navBtn("50%", 0, 0, "chevron-down", - () => LightboxView.LightboxDoc && this.props.future()?.length ? "" : "none", e => { + () => LightboxView.LightboxDoc /*&& this.props.future()?.length*/ ? "" : "none", e => { e.stopPropagation(); this.props.stepInto(); }, |