From 2c86a6958186c020ce7fbe99555f07ffe9f9f821 Mon Sep 17 00:00:00 2001
From: andrewdkim <adkim414@gmail.com>
Date: Tue, 6 Aug 2019 12:25:09 -0400
Subject: timeline contextmenu

---
 src/client/views/MainView.tsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/client/views/MainView.tsx')

diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 669b8f018..589fcc409 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -39,6 +39,7 @@ import { FilterBox } from './search/FilterBox';
 import { CollectionTreeView } from './collections/CollectionTreeView';
 import { ClientUtils } from '../util/ClientUtils';
 import { SchemaHeaderField, RandomPastel } from '../../new_fields/SchemaHeaderField';
+import { TimelineMenu } from './animationtimeline/TimelineMenu';
 
 @observer
 export class MainView extends React.Component {
@@ -148,6 +149,9 @@ export class MainView extends React.Component {
             const targets = document.elementsFromPoint(e.x, e.y);
             if (targets && targets.length && targets[0].className.toString().indexOf("contextMenu") === -1) {
                 ContextMenu.Instance.closeMenu();
+            } 
+            if (targets && targets.length && targets[0].className.toString().indexOf("timeline-menu-container") === -1){
+                TimelineMenu.Instance.closeMenu(); 
             }
         }), true);
     }
@@ -461,6 +465,7 @@ export class MainView extends React.Component {
                 {this.nodesMenu()}
                 {this.miscButtons}
                 <PDFMenu />
+                <TimelineMenu/>
                 <MainOverlayTextBox />
                 <OverlayView />
             </div >
-- 
cgit v1.2.3-70-g09d2

