diff --git a/hugo-site/static/js/small-world-routing.js b/hugo-site/static/js/small-world-routing.js index dc25c86d..bd1e8b6f 100644 --- a/hugo-site/static/js/small-world-routing.js +++ b/hugo-site/static/js/small-world-routing.js @@ -264,7 +264,7 @@ async function initVisualization() { segmentLengths[i] = length; } - const pixelsPerSecond = 600; // Constant speed in pixels per second + const pixelsPerSecond = 1200; // Constant speed in pixels per second let startTime = null; let lastSegmentStartTime = null; @@ -286,11 +286,9 @@ async function initVisualization() { if (currentPathSegment >= currentPath.length - 1) { // Animation complete - wait 3 seconds then trigger new route - setTimeout(() => { - if (isPlaying) { - startNewRoute(); - } - }, 500); + if (isPlaying) { + startNewRoute(); + } return; }