Skip to content

Commit

Permalink
Fix chapter marker placement (#2874)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Nov 20, 2022
1 parent 0c0fa31 commit 88e9618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/ft-video-player/ft-video-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down

0 comments on commit 88e9618

Please sign in to comment.