From 220d5bff52c6a1adc10cb17109020802e03c9252 Mon Sep 17 00:00:00 2001 From: geireann Date: Thu, 9 Nov 2023 13:33:13 -0500 Subject: scroll mode fixes. --- .../collections/collectionFreeForm/CollectionFreeFormView.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index bb6740260..17490e68e 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -649,7 +649,7 @@ export class CollectionFreeFormView extends CollectionSubView { - const ctrlKey = (e as any).ctrlKey; - const shiftKey = (e as any).shiftKey; + pan = (e: PointerEvent): void => { + const ctrlKey = e.ctrlKey && !e.shiftKey; + const shiftKey = e.shiftKey && !e.ctrlKey; PresBox.Instance?.pauseAutoPres(); this.props.DocumentView?.().clearViewTransition(); const [dx, dy] = this.getTransform().transformDirection(e.clientX - this._lastX, e.clientY - this._lastY); -- cgit v1.2.3-70-g09d2