aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentButtonBar.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-06 11:11:34 -0400
committerbobzel <zzzman@gmail.com>2022-06-06 11:11:34 -0400
commit9af41a75b3b8f114b5297ff83823560425fbd2ac (patch)
tree7ecc06fd8f2eaf7c3142d9b35bc312521eb93c19 /src/client/views/DocumentButtonBar.tsx
parent9acba91baa0ee2ee43106d344392039a2cbd0e46 (diff)
fixes for audio box pin with view.
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
-rw-r--r--src/client/views/DocumentButtonBar.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx
index 25297e167..b2f4b82a4 100644
--- a/src/client/views/DocumentButtonBar.tsx
+++ b/src/client/views/DocumentButtonBar.tsx
@@ -223,7 +223,7 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV
const scroll = targetDoc._scrollTop;
activeDoc.presPinView = true;
activeDoc.presPinViewScroll = scroll;
- } else if (targetDoc.type === DocumentType.VID) {
+ } else if ([DocumentType.AUDIO, DocumentType.VID].includes(targetDoc.type as any)) {
activeDoc.presPinView = true;
activeDoc.presStartTime = targetDoc._currentTimecode;
activeDoc.presEndTime = NumCast(targetDoc._currentTimecode) + 0.1;