ProCreations commited on
Commit
f141dcb
·
verified ·
1 Parent(s): b86ae0f

Fix training speed for walkthrough mode

Browse files
Files changed (1) hide show
  1. index.html +3 -1
index.html CHANGED
@@ -2368,7 +2368,9 @@
2368
  `;
2369
  trainBtn.className = 'btn btn-pause';
2370
 
2371
- trainInterval = setInterval(trainStep, 100);
 
 
2372
  } else {
2373
  trainBtn.innerHTML = `
2374
  <svg class="icon" fill="currentColor" viewBox="0 0 24 24">
 
2368
  `;
2369
  trainBtn.className = 'btn btn-pause';
2370
 
2371
+ // Use slower speed in walkthrough mode
2372
+ const trainingSpeed = walkthroughActive ? walkthroughTrainingSpeed : 100;
2373
+ trainInterval = setInterval(trainStep, trainingSpeed);
2374
  } else {
2375
  trainBtn.innerHTML = `
2376
  <svg class="icon" fill="currentColor" viewBox="0 0 24 24">