aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-01-14 14:41:09 -0500
committerbobzel <zzzman@gmail.com>2021-01-14 14:41:09 -0500
commit8176561879eecadec6a2f8926f08db93807aa16e (patch)
tree689dc72ba0d55bb85066c424d3e6719e8d4d4e1d /src
parenta3517dec4d76b4534d05f16e6a2da4aa519e8258 (diff)
fixed playing anchors when following a link to audio
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/AudioBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index d151ec413..21dfec888 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -197,12 +197,12 @@ export class AudioBox extends ViewBoxAnnotatableComponent<FieldViewProps, AudioD
if (startTime) {
link = true;
- this.layoutDoc.playOnSelect && this.recordingStart && (endTime ? this.playFrom(startTime, endTime) : this.playFrom(startTime));
+ this.layoutDoc.playOnSelect && (endTime ? this.playFrom(startTime, endTime) : this.playFrom(startTime));
}
}
});
- this.layoutDoc.playOnSelect && this.recordingStart && Doc.AreProtosEqual(doc, this.props.Document) && this.pause();
+ this.layoutDoc.playOnSelect && Doc.AreProtosEqual(doc, this.props.Document) && this.pause();
return link;
}