diff options
author | bobzel <zzzman@gmail.com> | 2020-07-31 18:12:27 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-07-31 18:12:27 -0400 |
commit | 8ab7035428524b024a56556ca3060d56b162dd57 (patch) | |
tree | a8a537015a71971d464c8732e964782a254dc1a6 /src/client/views/MainView.tsx | |
parent | 49ff32114387b5875e5cfb804a741caf24424612 (diff) |
fixed not-selecting dockingView by setting renderDepth=-1 & checking in DocView's onCLick.
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 6009f7dab..85f695b85 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -361,7 +361,7 @@ export class MainView extends React.Component { docFilters={returnEmptyFilter} ContainingCollectionView={undefined} ContainingCollectionDoc={undefined} - renderDepth={0} + renderDepth={-1} />; } @computed get dockingContent() { @@ -373,8 +373,6 @@ export class MainView extends React.Component { </div>; } - _canClick = false; - @action onPropertiesPointerDown = (e: React.PointerEvent) => { setupMoveUpEvents(this, e, action((e: PointerEvent, down: number[], delta: number[]) => { @@ -389,7 +387,6 @@ export class MainView extends React.Component { if (this._flyoutTranslate) { setupMoveUpEvents(this, e, action((e: PointerEvent) => { this.flyoutWidth = Math.max(e.clientX, 0); - Math.abs(this.flyoutWidth - this._flyoutSizeOnDown) > 6 && (this._canClick = false); this.sidebarButtonsDoc._columnWidth = this.flyoutWidth / 3 - 30; return false; }), emptyFunction, action(() => { |