aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionStackedTimeline.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx
index b6321043c..f533bee52 100644
--- a/src/client/views/collections/CollectionStackedTimeline.tsx
+++ b/src/client/views/collections/CollectionStackedTimeline.tsx
@@ -145,12 +145,21 @@ export class CollectionStackedTimeline extends CollectionSubView<
})!;
}
+ _disposer: IReactionDisposer | undefined;
componentDidMount() {
document.addEventListener("keydown", this.keyEvents, true);
+ this._disposer = reaction(() => this.currentTime,
+ () => {
+ if (CollectionStackedTimeline.SelectingRegion === this) {
+ this._markerEnd = this.currentTime;
+ }
+
+ });
}
@action
componentWillUnmount() {
+ this._disposer?.();
document.removeEventListener("keydown", this.keyEvents, true);
if (CollectionStackedTimeline.SelectingRegion === this) {
CollectionStackedTimeline.SelectingRegion = undefined;