aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-11-25 14:27:19 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-11-25 14:27:19 +0530
commit6f47115a3b1a33b57d4cbf8134780e5a478c0bd3 (patch)
tree0ecc20d34ebe6cc5db7727c70db48dea6bb1d72e /src/client/views/collections
parent6899214857b28033e1499251dc4ec32c11649b12 (diff)
parent51ddd53c847992c1cdba9625a81fb4f380a3b95b (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into acls_uv
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/TabDocView.tsx4
1 files changed, 2 insertions, 2 deletions
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<TabDocViewProps> {
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")) {