From a6f34fd4b67b863a85aab8fae0a2bd06a1decdc8 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 23 Dec 2022 17:30:51 -0500 Subject: fixed scroll pan vs. zoom option and ui --- src/client/util/SettingsManager.tsx | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'src/client/util/SettingsManager.tsx') diff --git a/src/client/util/SettingsManager.tsx b/src/client/util/SettingsManager.tsx index 5c1c836f7..a3d76591f 100644 --- a/src/client/util/SettingsManager.tsx +++ b/src/client/util/SettingsManager.tsx @@ -28,7 +28,7 @@ export enum ColorScheme { export enum freeformScrollMode { Pan = 'pan', - Zoom = 'zoom' + Zoom = 'zoom', } @observer @@ -307,11 +307,9 @@ export class SettingsManager extends React.Component<{}> { ); } - - setFreeformScrollMode = (mode: freeformScrollMode) => { Doc.UserDoc().freeformScrollMode = mode; - } + }; @computed get modesContent() { return ( @@ -334,12 +332,20 @@ export class SettingsManager extends React.Component<{}> {
Playground Mode
-
Freeform scroll mode
-
- -
Scrolling pans around the freeform, holding shift and scrolling zooms in and out.
- -
Scrolling zooms in and out of canvas
+
+ Freeform scrolling +
+
+ +
+
Scrolling pans canvas, shift + scrolling zooms
+
+ +
Scrolling zooms canvas
-- cgit v1.2.3-70-g09d2