aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackedTimeline.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-09-13 20:19:56 -0400
committermehekj <mehek.jethani@gmail.com>2021-09-13 20:19:56 -0400
commit1ce13f912afc7edd1073e6e8204f8f5fb52cd4b0 (patch)
treed972cbbd1fd0c7c7ba47e9bd18da0bb180f25da3 /src/client/views/collections/CollectionStackedTimeline.tsx
parentd71bc56628c2193b537b92a186785eaffa3a1eef (diff)
parentaf246480e97554233293ab1dfb08b5af5e1f9d7c (diff)
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/client/views/collections/CollectionStackedTimeline.tsx')
-rw-r--r--src/client/views/collections/CollectionStackedTimeline.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx
index eee1df921..2e9525577 100644
--- a/src/client/views/collections/CollectionStackedTimeline.tsx
+++ b/src/client/views/collections/CollectionStackedTimeline.tsx
@@ -43,6 +43,7 @@ import {
import { LabelBox } from "../nodes/LabelBox";
import "./CollectionStackedTimeline.scss";
import { Colors } from "../global/globalEnums";
+import { DocumentManager } from "../../util/DocumentManager";
type PanZoomDocument = makeInterface<[]>;
const PanZoomDocument = makeInterface();
@@ -246,7 +247,7 @@ export class CollectionStackedTimeline extends CollectionSubView<
Math.abs(movement[0]) > 15 &&
!this.props.trimming
) {
- CollectionStackedTimeline.createAnchor(
+ const anchor = CollectionStackedTimeline.createAnchor(
this.rootDoc,
this.dataDoc,
this.props.fieldKey,
@@ -255,6 +256,7 @@ export class CollectionStackedTimeline extends CollectionSubView<
this._markerStart,
this._markerEnd
);
+ setTimeout(() => DocumentManager.Instance.getDocumentView(anchor)?.select(false));
}
(!isClick || !wasSelecting) &&
(CollectionStackedTimeline.SelectingRegion = undefined);