From f66a6247bb859bc7637c4744b845fe474288af5f Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Sat, 3 Jun 2023 18:37:51 +0200 Subject: [PATCH] reset zoom & focus when opening a new workflow --- editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor.js b/editor.js index a6a8a29..989a411 100644 --- a/editor.js +++ b/editor.js @@ -263,6 +263,8 @@ function defineOnClick(item, url, title) { workflow[key] = data[key]; prepareWorkflow(); updateGraph(); + wfGraph.centerAt(0, 0, 400); + wfGraph.zoom(1, 400); document.getElementById('filename').innerText = title; document.title = title + ' | Editor'; });