diff options
author | bobzel <zzzman@gmail.com> | 2022-09-26 11:15:03 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-26 11:15:03 -0400 |
commit | e4e747e70686fda53167e4a13fa54f8f73f5380e (patch) | |
tree | e90516d0861e6a5f06f6618a1e4761e7e4200ca5 /src/client/views/StyleProvider.tsx | |
parent | d14cece23d1dac76d3bc1643e05b5b51071466ca (diff) | |
parent | d182a3462a06ea58c4a0c937190aaa66eced0c01 (diff) |
Merge branch 'tree-view-fixes'
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 3a55b7de1..8b256923a 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -271,7 +271,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps if (props?.pointerEvents?.() === 'none') return 'none'; const isInk = doc && StrCast(Doc.Layout(doc).layout).includes(InkingStroke.name); if (opacity() === 0 || (isInk && !docProps?.treeViewDoc) || doc?.isInkMask) return 'none'; - if (!isInk) return 'all'; + if (!isInk) return props?.isDocumentActive?.() ? 'all' : undefined; // fixes problem with tree view elements getting pointer events when the tree view is not active return undefined; case StyleProp.Decorations: if (props?.ContainingCollectionDoc?._viewType === CollectionViewType.Freeform || doc?.x !== undefined || doc?.y !== undefined) { |