From 9305c3f7d77ca46c8d9fbdb3071ab7a1fb64e383 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Wed, 15 Jul 2026 16:44:47 -0700 Subject: [PATCH] [eric] dashboard: skip the click-focus camera fit when the press became a drag or marquee (start-of-drag camera nudge) --- .../Dashboard/hooks/interaction/useDashboardInteractions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts b/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts index 1d4765aa..91ca5fe7 100644 --- a/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts +++ b/frontend/src/app/pages/Dashboard/hooks/interaction/useDashboardInteractions.ts @@ -72,6 +72,8 @@ export function useDashboardInteractions({ } setFocusedCardId(id); setTimeout(() => { + // The capture-phase select fires this on pointer DOWN; if the press became a drag (or marquee), re-framing the camera mid-gesture is the "canvas yanks as I start dragging" nudge. The webview shield class is up for exactly that window. + if (document.body.classList.contains('dashboard-marquee-active')) return; const rect = getCardRect(id, type); if (rect) canvas.actions.fitToCards([rect], 1.15, true, type === 'browser' ? 0.8 : undefined); setTimeout(() => {