diff --git a/manifest.json b/manifest.json index 5c8c7be..20159c6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "excalibrain", "name": "ExcaliBrain", - "version": "0.2.4", + "version": "0.2.5", "minAppVersion": "1.1.6", "description": "A clean, intuitive and editable graph view for Obsidian", "author": "Zsolt Viczian", diff --git a/src/Scene.ts b/src/Scene.ts index 14dd071..a8e2c1b 100644 --- a/src/Scene.ts +++ b/src/Scene.ts @@ -716,7 +716,7 @@ export class Scene { ea.targetView.clearDirty(); //hack to prevent excalidraw from saving the changes excalidrawAPI.updateScene({appState: {viewBackgroundColor: settings.backgroundColor}}); - if(settings.allowAutozoom) { + if(settings.allowAutozoom && !retainCentralNode) { setTimeout(()=>excalidrawAPI.zoomToFit(ea.getViewElements(),settings.maxZoom,0.15),100); }