Skip to content

Commit

Permalink
Feat: reset playhead tracking when initiating the video player
Browse files Browse the repository at this point in the history
  • Loading branch information
mateussouzaweb committed Jan 31, 2024
1 parent e1abe11 commit c3ef33a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ const onRender: Callback = async (component) => {

video = video
playing = false
lastPlayhead = 0

// Video Events
on(video, 'click', (event) => {
Expand Down

0 comments on commit c3ef33a

Please sign in to comment.