From aecdc864a459213ef5f8882c06ba08a9c873ca56 Mon Sep 17 00:00:00 2001
From: Max <m.giller.dev@gmail.com>
Date: Sat, 31 Jul 2021 09:36:14 +0200
Subject: [PATCH] Attempts at improving save points

---
 editor/js/editor.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/editor/js/editor.js b/editor/js/editor.js
index 493f70b..cc24322 100644
--- a/editor/js/editor.js
+++ b/editor/js/editor.js
@@ -15,6 +15,7 @@ window.onload = function () {
             // Deactivate physics after a short delay
             setTimeout(() => {
                 graph.stopPhysics();
+                graph.storeCurrentData("Physics stopped");
             }, STOP_PHYSICS_DELAY);
         });
 };
@@ -64,6 +65,7 @@ function load() {
         .onLinkClick((link) => state.onLinkClick(link));
 
     graph.onChangeCallbacks.push((data) => {
+        graphObj.cooldownTicks(0);
         graphObj.graphData(data);
     });
 }
-- 
GitLab