diff options
| author | bobzel <zzzman@gmail.com> | 2022-08-29 13:31:22 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-08-29 13:31:22 -0400 |
| commit | fb873aed085f8e11231a231aac94d6fb3bd27683 (patch) | |
| tree | 6448b02973676b95f99eba5d6f1a8608293670f8 /src/client/views/nodes/WebBox.tsx | |
| parent | 5c25ba79fb24309cb9861d440778cbb902acd123 (diff) | |
fixed being able to draw on web/pdfs. adjusted default margins of stacking views.
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 b9e8e7c6e..2c5deba88 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -919,7 +919,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'); - annotationPointerEvents = () => (this._isAnnotating || SnappingManager.GetIsDragging() ? 'all' : 'none'); + annotationPointerEvents = () => (this._isAnnotating || SnappingManager.GetIsDragging() || Doc.ActiveTool !== InkTool.None ? 'all' : 'none'); render() { const previewScale = this._previewNativeWidth ? 1 - this.sidebarWidth() / this._previewNativeWidth : 1; const pointerEvents = this.layoutDoc._lockedPosition ? 'none' : (this.props.pointerEvents?.() as any); |
