From 4835ec7a5fb6d1338ef5328e678cf8fd903967e3 Mon Sep 17 00:00:00 2001 From: matei jordache Date: Fri, 27 Mar 2026 19:21:15 -0700 Subject: [PATCH] fix pan speed --- frontend/src/App.jsx | 1 + frontend/src/runtimeValuePersistence.js | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 frontend/src/runtimeValuePersistence.js diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 09dd94a..a28f1ff 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -2790,6 +2790,7 @@ function Flow() { colorMode="dark" panOnDrag={[1]} panOnScroll + panOnScrollSpeed={1.5} panOnScrollMode={PanOnScrollMode.Free} zoomOnScroll={false} selectionOnDrag diff --git a/frontend/src/runtimeValuePersistence.js b/frontend/src/runtimeValuePersistence.js new file mode 100644 index 0000000..763d146 --- /dev/null +++ b/frontend/src/runtimeValuePersistence.js @@ -0,0 +1,10 @@ +export function sanitizeRuntimeValuesForPersistence(className, runtimeValues) { + if (!runtimeValues || typeof runtimeValues !== 'object' || Array.isArray(runtimeValues)) { + return {}; + } + + if (className === 'View3D') { + return {}; + } + return { ...runtimeValues }; +}