diff options
author | bobzel <zzzman@gmail.com> | 2022-05-23 22:13:00 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-05-23 22:13:00 -0400 |
commit | 52aa355e4af3f1c5f785dcf1536418119176e5a2 (patch) | |
tree | b65a917f9169753e5f29d4f822c573c815bf9295 /src/client/views/MainView.tsx | |
parent | d50b851d8e92797d214fc35cf243bfb29e970b36 (diff) |
tweaked pointerEvents for headerBar to stay on if there are no documents in the header so that you can still drag and drop onto it.
Diffstat (limited to 'src/client/views/MainView.tsx')
-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 f3dc2cf85..dccbdb313 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -283,9 +283,8 @@ export class MainView extends React.Component { } headerBarScreenXf = () => new Transform(-this.leftScreenOffsetOfMainDocView - this.leftMenuFlyoutWidth(), -this.headerBarDocHeight(), 1); - headerContentActive = () => SnappingManager.GetIsDragging() ? false : true; + headerContentActive = () => SnappingManager.GetIsDragging() && DocListCast(CurrentUserUtils.MyHeaderBarDoc.data).length ? false : true; @computed get headerBarDocView() { - console.log(this.headerBarDoc) return <div style={{ height: this.headerBarDocHeight() }}> <DocumentView key="headerBarDoc" Document={this.headerBarDoc} |