diff options
author | bobzel <zzzman@gmail.com> | 2023-03-23 10:57:47 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-03-23 10:57:47 -0400 |
commit | 923f0fdb0f039a923e4e6f870158bd2f2ba32db0 (patch) | |
tree | d0cdca2d844b7bb814e50c961e273a8ec498e760 /src | |
parent | d5f60e34e8ac9f99c0b442346db5386068af5de2 (diff) |
fixed nested collections to not grab pointerwheel events if not active
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 840eede81..aea7a3ad9 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1075,7 +1075,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection @action onPointerWheel = (e: React.WheelEvent): void => { - if (this.Document._isGroup) return; // group style collections neither pan nor zoom + if (this.Document._isGroup || !this.isContentActive()) return; // group style collections neither pan nor zoom PresBox.Instance?.pauseAutoPres(); if (this.layoutDoc._Transform || DocListCast(Doc.MyOverlayDocs?.data).includes(this.props.Document) || this.props.Document.treeViewOutlineMode === TreeViewType.outline) return; e.stopPropagation(); |