aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-25 13:29:58 -0400
committerbobzel <zzzman@gmail.com>2021-03-25 13:29:58 -0400
commit5db728e099e25a807f69b316d813f662daf3eb7b (patch)
tree014bc1ae1c12b27d9b6389c6f0d6bad881bb6371 /src/client/views/collections
parentd0515c81be9f4292eaf165762ce15e7bc8d1737a (diff)
fixed videos in lightbox to not auto-follow links. fixed audiotags to higlight more clearly when target of a link follow.
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionStackedTimeline.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx
index db02ab986..2dcdf58c2 100644
--- a/src/client/views/collections/CollectionStackedTimeline.tsx
+++ b/src/client/views/collections/CollectionStackedTimeline.tsx
@@ -273,7 +273,7 @@ export class CollectionStackedTimeline extends CollectionSubView<PanZoomDocument
}
}
-interface StackedTinelineAnchorProps {
+interface StackedTimelineAnchorProps {
mark: Doc;
rangeClickScript: () => ScriptField;
rangePlayScript: () => ScriptField;
@@ -297,7 +297,7 @@ interface StackedTinelineAnchorProps {
stackedTimeline: CollectionStackedTimeline;
}
@observer
-class StackedTimelineAnchor extends React.Component<StackedTinelineAnchorProps> {
+class StackedTimelineAnchor extends React.Component<StackedTimelineAnchorProps> {
_lastTimecode: number;
_disposer: IReactionDisposer | undefined;
constructor(props: any) {
@@ -307,7 +307,7 @@ class StackedTimelineAnchor extends React.Component<StackedTinelineAnchorProps>
componentDidMount() {
this._disposer = reaction(() => this.props.currentTimecode(),
(time) => {
- if (!LightboxView.LightboxDoc && DocListCast(this.props.mark.links).length &&
+ if (!Doc.AreProtosEqual(LightboxView.LightboxDoc, this.props.layoutDoc) && DocListCast(this.props.mark.links).length &&
time > NumCast(this.props.mark[this.props.startTag]) &&
time < NumCast(this.props.mark[this.props.endTag]) &&
this._lastTimecode < NumCast(this.props.mark[this.props.startTag])) {