diff --git a/frontend/src/pages/Editor.tsx b/frontend/src/pages/Editor.tsx index 7ee0c05..5479888 100644 --- a/frontend/src/pages/Editor.tsx +++ b/frontend/src/pages/Editor.tsx @@ -208,6 +208,18 @@ export default function Editor({ isPublicView }: EditorProps) { pinOverlay.refresh(); }, [pinOverlay]); + // Sync draft pin to PinOverlay ghost pin + useEffect(() => { + if (!pinOverlay) return; + pinOverlay.setGhostPin(draftPin ? { objectId: draftPin.objectId, pinX: draftPin.pinX, pinY: draftPin.pinY } : null); + }, [draftPin, pinOverlay]); + + // Sync focused thread to PinOverlay focus visuals + useEffect(() => { + if (!pinOverlay) return; + pinOverlay.setFocusedThread(focusedThreadId); + }, [focusedThreadId, pinOverlay]); + // Review-mode pointer handling: pin click + draft pin placement useEffect(() => { const vp = canvasRef.current?.getViewport();