diff options
author | mehekj <mehek.jethani@gmail.com> | 2023-02-09 00:03:40 -0500 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2023-02-09 00:03:40 -0500 |
commit | 739fee917e4aa15ff7aef659cc84bfbd3cb48bcf (patch) | |
tree | 96babde1ca9ae32379fabcb29f38360701b42c87 /src/client/views/nodes/WebBox.tsx | |
parent | ca3868b494bfd00c0349424f622bb5010b0e1197 (diff) | |
parent | a8b19694ec902d4094914ba6ddd15e700fab117e (diff) |
Merge branch 'master' into schema-mehek
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index acf4fe4b0..d0d638e98 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -981,7 +981,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps } return this.props.styleProvider?.(doc, props, property); }; - pointerEvents = () => (!this._draggingSidebar && this.props.isContentActive() && this.props.pointerEvents?.() !== 'none' && !MarqueeOptionsMenu.Instance.isShown() ? 'all' : SnappingManager.GetIsDragging() ? undefined : 'none'); + pointerEvents = () => (!this._draggingSidebar && this.props.isContentActive() && this.props.pointerEvents?.() !== 'none' && !MarqueeOptionsMenu.Instance?.isShown() ? 'all' : SnappingManager.GetIsDragging() ? undefined : 'none'); annotationPointerEvents = () => (this._isAnnotating || SnappingManager.GetIsDragging() || Doc.ActiveTool !== InkTool.None ? 'all' : 'none'); render() { const previewScale = this._previewNativeWidth ? 1 - this.sidebarWidth() / this._previewNativeWidth : 1; |