diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-08-25 04:26:12 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-08-25 04:26:12 -0400 |
commit | f5c2f5bc8710a965a0b52e2e414f62a2a459a94f (patch) | |
tree | 558c2125c3bd4e3cfb004552691cd482b98bfab0 /src/client/views/MainView.tsx | |
parent | 35724d24821132ab5c6df398447db4e9760155cb (diff) |
border work
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index d4467e536..9c350afc0 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -88,6 +88,7 @@ export class MainView extends ObservableReactComponent<{}> { public static Live: boolean = false; private _docBtnRef = React.createRef<HTMLDivElement>(); + @observable private _keepContextMenuOpen: boolean = false; @observable private _windowWidth: number = 0; @observable private _windowHeight: number = 0; @observable private _dashUIWidth: number = 0; // width of entire main dashboard region including left menu buttons and properties panel (but not including the dashboard selector button row) @@ -590,7 +591,10 @@ export class MainView extends ObservableReactComponent<{}> { if (typeof targets[i].className === 'object') targClass = targets[i + 1].className.toString(); else break; } - !targClass.includes('contextMenu') && ContextMenu.Instance.closeMenu(); + if (!targClass.includes('contextMenu')) { + console.log(targClass) + ContextMenu.Instance.closeMenu(); + } !['timeline-menu-desc', 'timeline-menu-item', 'timeline-menu-input'].includes(targClass) && TimelineMenu.Instance.closeMenu(); } }); |