From f0f124d1d2eeb26a0d4514c84467333c05826d94 Mon Sep 17 00:00:00 2001 From: Hiren Kangad Date: Tue, 10 Mar 2026 04:10:43 +0530 Subject: [PATCH] fix(refboard): broadcast scene changes to other clients immediately onCanvasChange now calls broadcastSceneNow() so rearrangement, alignment, and other bulk operations sync to other tabs in real-time instead of waiting for the next periodic sync or page reload. --- frontend/src/pages/Editor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/Editor.tsx b/frontend/src/pages/Editor.tsx index 82b93ce..9fa4eaa 100644 --- a/frontend/src/pages/Editor.tsx +++ b/frontend/src/pages/Editor.tsx @@ -105,6 +105,8 @@ export default function Editor({ isPublicView }: EditorProps) { // Canvas change handler const onCanvasChange = useCallback(() => { scheduleSave(); + // Broadcast changes to other connected clients immediately + syncRef.current?.broadcastSceneNow(); if (undoRef.current && !undoRef.current.isLocked()) { undoRef.current.saveState(); setCanUndo(undoRef.current.canUndo());