Include hoveredViewportPanelId in dependency array of useEffect
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user