diff options
author | bobzel <zzzman@gmail.com> | 2021-07-29 17:49:14 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-07-29 17:49:14 -0400 |
commit | a5faca5f510e60ecce125ab59096d4e943352ea5 (patch) | |
tree | 11af63d101118e134f7e0438dbbf05ef515dbf39 /src/client/views/StyleProvider.tsx | |
parent | 93c06962c18c916518616ab8f53944487e59fc2a (diff) |
fixed issues with following links to anchors in PDFs/etc and getting scroll position right.
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"; |