Skip to content

armgit / ui

Public Imported from GitHub
0
TypeScript

Enable tuned autoscroll in schema builder

Andrew Luo2a11e4467f06
diff --git a/apps/v4/registry/new-york-v4/ui/schema-builder.tsx b/apps/v4/registry/new-york-v4/ui/schema-builder.tsx
index f7e95be..529e925 100644
--- a/apps/v4/registry/new-york-v4/ui/schema-builder.tsx
+++ b/apps/v4/registry/new-york-v4/ui/schema-builder.tsx
@@ -2430,7 +2430,10 @@ export function SchemaBuilderPanel({
<ScrollArea className="h-full" scrollFade>
<DndContext
id={`schema-builder-${dndContextId}`}
- autoScroll={false}
+ autoScroll={{
+ threshold: { x: 0.05, y: 0.14 },
+ acceleration: 8,
+ }}
sensors={sensors}
collisionDetection={schemaCollisionDetection}
measuring={SCHEMA_DND_MEASURING}