From abe021025c3df1adab291ae675fe479322b06a51 Mon Sep 17 00:00:00 2001 From: bkennedy Date: Tue, 30 Jun 2026 18:58:16 +0000 Subject: [PATCH] fix(board): drop board auto-scroll acceleration to 2 (5 was still too fast) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #47 was meant to ship acceleration 2 but merged the earlier acceleration-5 revision (a force-push raced the merge), so the value live on the board is the one that still scrolls too fast (~800px/s) when dragging a card to the edge. Set acceleration to 2 (~320px/s, ≈ one column per second, measured ~340) — the intended value. Keeps the smooth 5ms cadence; acceleration is the single knob. --- src/client/pages/Home.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/pages/Home.tsx b/src/client/pages/Home.tsx index dff30d1..cb92f63 100644 --- a/src/client/pages/Home.tsx +++ b/src/client/pages/Home.tsx @@ -488,11 +488,11 @@ export default function Home({ workspace }: { workspace: WorkspacePayload }) { // Tame the edge auto-scroll. dnd-kit's default acceleration (10) scrolls // the board ~2000px/s when a dragged card reaches the left/right edge — // far too fast to land in the intended column on a phone, where only - // ~one column is visible (PROG-79 follow-up). Halving acceleration caps - // the top speed while keeping the smooth 5ms scroll cadence (lowering it - // further is the knob to turn if it's still fast; raising `interval` - // instead would make the motion choppy). - autoScroll={{ acceleration: 5 }} + // ~one column is visible (PROG-79 follow-up). acceleration 2 caps it at + // ~320px/s (≈ one column per second) while keeping the smooth 5ms scroll + // cadence — deliberate and controllable. It's the single knob to dial + // (raising `interval` instead would make the motion choppy). + autoScroll={{ acceleration: 2 }} onDragStart={onDragStart} onDragOver={onDragOver} onDragEnd={onDragEnd}