diff options
author | bobzel <zzzman@gmail.com> | 2020-08-03 13:38:19 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-03 13:38:19 -0400 |
commit | fb8150f01232a3f8e9333f9ed7012b6982b00c24 (patch) | |
tree | 3465bcaa74bb58fd80f556b6e342d823d45799c6 /src/client/views/MainView.tsx | |
parent | 3dc66a77097b0ee3ea9aa1d29b9a3a63667ed3b3 (diff) | |
parent | d96ef300a0ea7cff30d5990828e52e511cd9acf7 (diff) |
Merge branch 'menu_restructure' of https://github.com/browngraphicslab/Dash-Web into menu_restructure
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 47bccce43..ca5154ef7 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -384,10 +384,14 @@ export class MainView extends React.Component { @action onFlyoutPointerDown = (e: React.PointerEvent) => { - this.panelContent = "none"; if (this._flyoutTranslate) { setupMoveUpEvents(this, e, action((e: PointerEvent) => { this.flyoutWidth = Math.max(e.clientX, 0); + if (this.flyoutWidth < 5) { + this.panelContent = "none"; + this._lastButton && (this._lastButton.color = "white"); + this._lastButton && (this._lastButton._backgroundColor = ""); + } return false; }), emptyFunction, action(() => { if (this.flyoutWidth < 15) MainView.expandFlyout(); |