Include hoveredViewportPanelId in dependency array of useEffect

This commit is contained in:
2026-04-03 02:38:00 +02:00
parent ae6becb14a
commit d82e37861e

View File

@@ -1520,7 +1520,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
window.removeEventListener("pointermove", handleWindowPointerMove);
window.removeEventListener("keydown", handleWindowKeyDown);
};
}, [activePanelId, addMenuPosition, brushList.length, editorState.selection, editorState.toolMode, entityList.length, transformSession]);
}, [activePanelId, addMenuPosition, brushList.length, editorState.selection, editorState.toolMode, entityList.length, hoveredViewportPanelId, layoutMode, transformSession]);
useEffect(() => {
if (layoutMode === "quad" || viewportQuadResizeMode === null) {