fix pan speed

This commit is contained in:
2026-03-27 19:21:15 -07:00
parent c77c046eea
commit 4835ec7a5f
2 changed files with 11 additions and 0 deletions

View File

@@ -2790,6 +2790,7 @@ function Flow() {
colorMode="dark"
panOnDrag={[1]}
panOnScroll
panOnScrollSpeed={1.5}
panOnScrollMode={PanOnScrollMode.Free}
zoomOnScroll={false}
selectionOnDrag

View File

@@ -0,0 +1,10 @@
export function sanitizeRuntimeValuesForPersistence(className, runtimeValues) {
if (!runtimeValues || typeof runtimeValues !== 'object' || Array.isArray(runtimeValues)) {
return {};
}
if (className === 'View3D') {
return {};
}
return { ...runtimeValues };
}