diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-22 14:55:45 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-22 14:55:45 -0400 |
| commit | d8445ef3b2402530b5139b94eeb0f333c1fed661 (patch) | |
| tree | 3eca8b61462fb4b60e020329c932bf516c256886 /src/client/views/nodes/VideoBox.tsx | |
| parent | 3c8325a99c4cec82148039d381df8377dcd4ee3a (diff) | |
adjusted playLink in videos to start 1/4 sec early to trigger following link to anchor. changed text sidebars to show titles. fixed title autoHeight computations in formattedTextBox. fixed styleprovider to compute headerMargin correctly by inquiring style for ShowTitle.
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index 42258168c..5fd897629 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -493,7 +493,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<FieldViewProps, VideoD } playLink = (doc: Doc) => { - const startTime = this._stackedTimeline.current?.anchorStart(doc) || 0; + const startTime = Math.max(0, (this._stackedTimeline.current?.anchorStart(doc) || 0) - .25); const endTime = this._stackedTimeline.current?.anchorEnd(doc); if (startTime !== undefined) { if (!this.layoutDoc.dontAutoPlayFollowedLinks) endTime ? this.playFrom(startTime, endTime) : this.playFrom(startTime); |
