Skip to content

Commit 064ca41

Browse files
committed
fix TimelineMarkersHandler not reset()ing on release
1 parent 3572c8a commit 064ca41

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1515

1616
- Missing localization keys in the `Vocabulary` interface
1717
- Missing translations for certain localization keys in `de.json` and `nl.json` to ensure all language files are complete
18+
- TimelineMarkersHandler not releasing properly
1819

1920
## [4.8.1] - 2026-02-09
2021

src/ts/utils/TimelineMarkersHandler.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ export class TimelineMarkersHandler {
104104
liveStreamDetector.detect(); // Initial detection
105105

106106
this.uimanager.getConfig().events.onUpdated.subscribe(() => this.updateMarkers());
107-
this.uimanager.onRelease.subscribe(() =>
108-
this.uimanager.getConfig().events.onUpdated.unsubscribe(() => this.updateMarkers()),
109-
);
107+
this.uimanager.onRelease.subscribe(() => {
108+
this.uimanager.getConfig().events.onUpdated.unsubscribe(() => this.updateMarkers());
109+
reset();
110+
});
110111

111112
// Refresh timeline markers when the player is resized or the UI is configured. Timeline markers
112113
// are positioned absolutely and must therefore be updated when the size of the seekbar changes.

0 commit comments

Comments
 (0)