diff options
| author | bobzel <zzzman@gmail.com> | 2024-01-26 10:38:02 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-01-26 10:38:02 -0500 |
| commit | cdbe62da5c62f809629f4e8b01524b223f38abd4 (patch) | |
| tree | 6f696f5975b122a34e8c1547bfea46581a32c88e /src/client/views/collections/collectionFreeForm | |
| parent | f57f7d217441914ed943cba54c0c5445ba79ffb1 (diff) | |
cleaning up doubleClick documentview handling. fixed pan mode to drag collections when not active.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index c2f8232c6..a9910c2a8 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -219,7 +219,7 @@ export class MarqueeView extends ObservableReactComponent<SubCollectionViewProps const scrollMode = e.altKey ? (Doc.UserDoc().freeformScrollMode === freeformScrollMode.Pan ? freeformScrollMode.Zoom : freeformScrollMode.Pan) : Doc.UserDoc().freeformScrollMode; // allow marquee if right drag/meta drag, or pan mode - if (e.button === 2 || e.metaKey || scrollMode === freeformScrollMode.Pan) { + if (e.button === 2 || e.metaKey || (this._props.isContentActive() && scrollMode === freeformScrollMode.Pan)) { this.setPreviewCursor(e.clientX, e.clientY, true, false, this._props.Document); e.preventDefault(); } else PreviewCursor.Instance.Visible = false; |
