From b9fffbc5cc1f2ce4519f8256c4a8a0bc3a8bd734 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 19 Nov 2022 12:35:23 +0100 Subject: [PATCH] Fix chapter marker placement --- src/renderer/components/ft-video-player/ft-video-player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 2333cbce93947..aa3eacbc072d3 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -657,7 +657,7 @@ export default Vue.extend({ markerDiv.title = chapter.title markerDiv.className = 'chapterMarker' - markerDiv.style.marginLeft = (chapter.startSeconds / this.lengthSeconds) * 100 - 0.5 + '%' + markerDiv.style.marginLeft = `calc(${(chapter.startSeconds / this.lengthSeconds) * 100}% - 1px)` this.player.el().querySelector('.vjs-progress-holder').appendChild(markerDiv) },