diff --git a/editor/js/editor.js b/editor/js/editor.js index 493f70be80c9d3a5dc825ac441f54f4498009ed5..cc24322161303aded4172cccdaf0f864da3928b7 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); }); }