Up-in-the-Air – commitdiff

You can use Git to clone the repository via the web URL. Download snapshot (zip)
Do not rapidly move title screen contens around while fading to gameplay
authorJulian Fietkau <git@fietkau.software>
Tue, 24 Sep 2024 16:34:19 +0000 (18:34 +0200)
committerJulian Fietkau <git@fietkau.software>
Tue, 24 Sep 2024 16:34:19 +0000 (18:34 +0200)
main.js

diff --git a/main.js b/main.js
index 0b5e47ab4fc1b6385fb4239d50125d155996a640..cecfcd8804f30e70dfa17cce1aa42c33f3b3873d 100644 (file)
--- a/main.js
+++ b/main.js
@@ -239,7 +239,9 @@ function reset(game) {
   game.objects.feather.position.set(-11.45, -game.courseRadius - 4.2, -6.6);
   game.objects.feather.rotation.set(Math.PI, 0, Math.PI / 2.1);
   game.objects.pinwheel.material[4].opacity = 0.0;
-  game.ui.root.querySelector('.ui-page.title').classList.remove('end');
+  setTimeout(() => {
+    game.ui.root.querySelector('.ui-page.title').classList.remove('end');
+  }, 500);
 
   if(game.objects.words) {
     for(let word of game.objects.words) {