From 52aa355e4af3f1c5f785dcf1536418119176e5a2 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 23 May 2022 22:13:00 -0400 Subject: 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. --- src/client/views/MainView.tsx | 3 +-- .../collections/collectionMulticolumn/CollectionMulticolumnView.tsx | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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
+ }} > {this.contents}
); -- cgit v1.2.3-70-g09d2