Skip to content

Commit

Permalink
fix: seek-thumbs positioning (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi authored Dec 18, 2024
1 parent 73e89a0 commit 5a16f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ export default {
playedEventPercents: [25, 50, 75, 100],
html5: {
nativeTextTracks: false
}
},
disableSeekWhileScrubbingOnMobile: true
};
7 changes: 0 additions & 7 deletions src/video-player.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,4 @@ export const overrideDefaultVideojsComponents = () => {
children.splice(children.indexOf('skipForward'), 1);
children.splice(children.indexOf('skipBackward'), 1);
}

const SeekBar = videojs.getComponent('SeekBar');
if (SeekBar && !SeekBar.prototype.options_.children.includes('mouseTimeDisplay')) {
// videojs isn't adding th timeDisplay on mobile, we want it for the chapters display
SeekBar.prototype.options_.children.splice(1, 0, 'mouseTimeDisplay');
}

};

0 comments on commit 5a16f74

Please sign in to comment.