Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
freeze the grid's rect snapshot while a gesture is live
[._.]/ Adam Eivy33650fa5d510
diff --git a/client/src/components/dashboard/DashboardGrid.jsx b/client/src/components/dashboard/DashboardGrid.jsxindex 7030219be5..33b8bbbe60 100644--- a/client/src/components/dashboard/DashboardGrid.jsx+++ b/client/src/components/dashboard/DashboardGrid.jsx@@ -649,8 +649,15 @@ export default function DashboardGrid({ items, editable, onChange, onLayoutModeC);// Read by the drag handlers, which must not re-bind every time a widget// re-measures (that would churn every memoized cell mid-gesture).+ //+ // Held at the SETTLED pack while a gesture is live: `rects` packs+ // `previewItems`, which folds the ghost in. Both readers below want where the+ // cards really are, not where the preview is drawing them. A keyboard grab is+ // modal and stays open indefinitely, so a pointer drag on a sibling handle+ // (or a pin release) can land mid-gesture and would otherwise compute its+ // rank against displaced tops and commit a card to the wrong slot.const rectsRef = useRef(rects);- rectsRef.current = rects;+ if (!drag) rectsRef.current = rects;const containerHeight = useMemo(() => {let bottom = 0;