aboutsummaryrefslogtreecommitdiffstats
path: root/src/media-timeline.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/media-timeline.js')
-rw-r--r--src/media-timeline.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/media-timeline.js b/src/media-timeline.js
index 8b6045e..648c998 100644
--- a/src/media-timeline.js
+++ b/src/media-timeline.js
@@ -123,6 +123,9 @@ export function mediaTimeline(player, url, { h, event, moments, glyph, label })
}
const items = ev && finite ? moments(ev.id, url) : [];
const next = items.map(x => x.id).join(',') + '@' + (finite ? player.duration : 0);
+ // a video has its own seek bar: this one shows under it only to carry
+ // what was said at a moment (two bars read as a glitch on a phone)
+ box.classList.toggle('has-marks', items.length > 0);
if (signature !== next) {
signature = next;
marks.replaceChildren(...items.map(x => h('button', { type: 'button', class: 'media-mark', title: mediaClock(x.moment.seconds) + ' ' + x.text,