aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-05-17 16:18:20 -0400
committerbobzel <zzzman@gmail.com>2023-05-17 16:18:20 -0400
commitda5184d2113935df25633a6015e177a51e88df2f (patch)
tree1c252a21568dd563b4adaf455d508e0247c367bc /src/client/views/nodes/DocumentView.tsx
parentfb41a1fd07faad49c88b2a8dc48b730a1609b00d (diff)
fixed scrolling/panning on fitWidth images. fixed drag/zoom conflicts for overlayDocs that are pannable.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 10ef1e6af..84f82a4b9 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -527,7 +527,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
!this.Document.ignoreClick &&
e.button === 0 &&
this.pointerEvents !== 'none' &&
- !DocListCast(Doc.MyOverlayDocs?.data).includes(this.layoutDoc)
+ !Doc.IsInMyOverlay(this.layoutDoc)
) {
e.stopPropagation();
// don't preventDefault anymore. Goldenlayout, PDF text selection and RTF text selection all need it to go though