Skip to content
Snippets Groups Projects
Commit aecdc864 authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Attempts at improving save points

parent b97fab4f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment