From 236bed717c721f56a60a57b189241a4cf714463c Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 24 Nov 2020 08:42:24 -0500 Subject: fixed ink pointer events to honor visiblepainted --- src/client/views/collections/TabDocView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 1bf0cb838..7f8f57088 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -472,9 +472,9 @@ export class TabDocView extends React.Component { default: if (property.startsWith("pointerEvents")) { const layer = doc && layerProvider?.(doc); + if (doc?.Opacity === 0 || doc?.type === DocumentType.INK || doc?.isInkMask) return "none"; if (layer === false && !property.includes(":selected") && !SnappingManager.GetIsDragging()) return "none"; - if (doc?.type === DocumentType.INK && Doc.GetSelectedTool() !== InkTool.None) return "none"; - if (layer === true) return "all"; + if (doc?.type !== DocumentType.INK && layer === true) return "all"; return undefined; } if (property.startsWith("decorations")) { -- cgit v1.2.3-70-g09d2