diff options
author | Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com> | 2021-07-29 15:36:02 -0700 |
---|---|---|
committer | Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com> | 2021-07-29 15:36:02 -0700 |
commit | 7e11e24fcdd9c086d63c643d6ee092c952d2e327 (patch) | |
tree | bcac5ca6a221ed37921f1b9186a1e5e20bfbf6b9 /src/client/views/StyleProvider.tsx | |
parent | 405114b0a2440939e89052539eb91f479e8d4176 (diff) | |
parent | e950b1828e2331f840b3b25dc9f8cb332ffe0105 (diff) |
Merge branch 'master' into aubrey-bugfix
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 32ddc140c..dc6ac0366 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -174,6 +174,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps } } case StyleProp.PointerEvents: + if (doc?.type === DocumentType.HTMLANCHOR) return "none"; if (props?.pointerEvents === "none") return "none"; const layer = doc && props?.layerProvider?.(doc); if (opacity() === 0 || (doc?.type === DocumentType.INK && !docProps?.treeViewDoc) || doc?.isInkMask) return "none"; |