@devries-cameron20 / t3code-1 / commits / 86d8838e91
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): dragging a sidebar thread no longer scrolls the list to the bottom (#27691)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Nov 6, 2026 at 02:21 UTC 86d8838e91b81d328fd8ced042860c7c60160dcd
1 file changed +5 -1
apps/web/src/components/Sidebar.tsx
+5 -1
@@ -17,6 +17,7 @@ import {
17 DndContext,
18 useSensor,
19 useSensors,
20 + type AutoScrollOptions,
21 type DragEndEvent,
22 type DragOverEvent,
23 type DragStartEvent,
@@ -876,6 +877,9 @@ function checkThreadOperations(
877
878 const SIDEBAR_DRAG_DISTANCE = 6;
879
880 +// dnd-kit's 20% edge zone at full speed runs the list away while the pointer rests near the bottom.
881 +const SIDEBAR_AUTO_SCROLL: AutoScrollOptions = { threshold: { x: 0, y: 0.05 }, acceleration: 3 };
882 +
883 const SIDEBAR_DRAG_LABEL_HEIGHT = 24;
884
885 const threadSearchResultId = (index: number) => `sidebar-thread-search-result-${index}`;
@@ -3280,7 +3284,7 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
3284 >
3285 <DndContext
3286 sensors={dndSensors}
3283 - autoScroll={!isContextDrag}
3287 + autoScroll={isContextDrag ? false : SIDEBAR_AUTO_SCROLL}
3288 collisionDetection={dndCollisionDetection}
3289 modifiers={dndModifiers}
3290 onDragStart={handleThreadDragStart}