diff options
author | bobzel <zzzman@gmail.com> | 2020-08-18 14:38:04 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-18 14:38:04 -0400 |
commit | 73ab9e35c849c54245be618c9e7fe09f56a151f3 (patch) | |
tree | 2c9e1e1f018069aee49ac7dd0bc4e242b05497c1 /src | |
parent | e374eb7c6ef542cc27c10e8d56b10f3a49a7e7e3 (diff) |
fixed dragging flyout tab
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/MainView.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 11d559d04..491b99f4a 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -70,7 +70,6 @@ import RichTextMenu from './nodes/formattedText/RichTextMenu'; export class MainView extends React.Component { public static Instance: MainView; private _buttonBarHeight = 36; - private _flyoutSizeOnDown = 0; private _urlState: HistoryUtil.DocUrl; private _docBtnRef = React.createRef<HTMLDivElement>(); private _mainViewRef = React.createRef<HTMLDivElement>(); @@ -423,7 +422,7 @@ export class MainView extends React.Component { onFlyoutPointerDown = (e: React.PointerEvent) => { if (this._flyoutTranslate) { setupMoveUpEvents(this, e, action((e: PointerEvent) => { - this.flyoutWidth = Math.max(e.clientX, 0); + this.flyoutWidth = Math.max(e.clientX - 58, 0); if (this.flyoutWidth < 5) { this.panelContent = "none"; this._lastButton && (this._lastButton.color = "white"); |