mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix active segment sometimes disapearing
This commit is contained in:
parent
901d6e6c92
commit
3550c168e2
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue