Up-in-the-Air – commitdiff

You can use Git to clone the repository via the web URL. Download snapshot (zip)
Bugfix: correct camera position during outro and on unlock screen
authorJulian Fietkau <git@fietkau.software>
Thu, 3 Oct 2024 20:13:24 +0000 (22:13 +0200)
committerJulian Fietkau <git@fietkau.software>
Thu, 3 Oct 2024 20:13:24 +0000 (22:13 +0200)
main.js

diff --git a/main.js b/main.js
index 7be04c7b17ae2942c4bd71e0bf84f0b5a9a75844..80c789081d6ea6ae1c605a6effb03b7e6ce5442a 100644 (file)
--- a/main.js
+++ b/main.js
@@ -749,7 +749,7 @@ game['fn'].animate = (scene) => {
       cameraSwayFactor = 0;
     }
     let cameraX, cameraY;
-    if(['options', 'credits'].includes(game.ui.currentPage)) {
+    if(['options', 'credits', 'outro', 'unlock'].includes(game.ui.currentPage)) {
       cameraX = game.ui.reachedEnd ? 5 : -5;
       cameraY = 0;
     }