Fix active segment sometimes disapearing

This commit is contained in:
Ajay 2022-08-28 23:45:02 -04:00
parent 901d6e6c92
commit 3550c168e2

View file

@ -1256,6 +1256,7 @@ function updatePreviewBar(): void {
});
previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), video?.duration)
updateActiveSegment(video.currentTime);
if (Config.config.showTimeWithSkips) {
const skippedDuration = utils.getTimestampsDuration(previewBarSegments.map(({segment}) => segment));