aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-03-27 18:39:11 -0400
committerbobzel <zzzman@gmail.com>2023-03-27 18:39:11 -0400
commit93460a55b07c7dd13537dfe6290116679d9991e4 (patch)
tree995c8a88e61a44fc438bc32285977b31751c33d8 /src/client/views/nodes/DocumentView.tsx
parent8ab9236664c561d54d6a41ecb1eb2eaf6064fc0c (diff)
fixed selections on PDFs
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index c8f677c5f..541dddd83 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -337,6 +337,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
DocumentView.LongPress ||
this.props.onClickScriptDisable === 'always' ||
this._componentView?.onClickScriptDisable?.() ||
+ (this.props.onClickScriptDisable !== 'never' && (this.rootSelected() || this.props.isSelected())) ||
this._componentView?.isAnyChildContentActive?.()
);
}