diff options
author | bobzel <zzzman@gmail.com> | 2020-09-03 14:44:11 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-03 14:44:11 -0400 |
commit | 425b8c1d8a577dfd8e2970afb61d69a62bea9e96 (patch) | |
tree | adfe3912c1408affa457f1deea5f6f27cc0aafe7 /src | |
parent | 5742e3558e33712175d7162bd53ac7fae6cdf099 (diff) |
added no autoscroll for collections
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 30a71398b..306dfe797 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1167,7 +1167,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P if ((e as any).handlePan || this.props.isAnnotationOverlay) return; (e as any).handlePan = true; - if (this._marqueeRef?.current) { + if (!this.props.Document._noAutoscroll && this._marqueeRef?.current) { const dragX = e.detail.clientX; const dragY = e.detail.clientY; const bounds = this._marqueeRef.current?.getBoundingClientRect(); |