From 1ccd91aab62ebc34e22a0310b7147de99d3fba42 Mon Sep 17 00:00:00 2001 From: Dominique Loiseau <5888729+domi7777@users.noreply.github.com> Date: Sat, 28 Dec 2024 14:52:02 +0100 Subject: [PATCH] fix(tracks): center control vertically in landscape --- src/scenes/LoopTracksScene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scenes/LoopTracksScene.ts b/src/scenes/LoopTracksScene.ts index f410cc6..32f2fa2 100644 --- a/src/scenes/LoopTracksScene.ts +++ b/src/scenes/LoopTracksScene.ts @@ -189,7 +189,7 @@ export class LoopTracksScene extends Phaser.Scene { .setOrigin(isPortrait ? 0.5 : 1, isPortrait ? 1 : 0.5) .setPosition( isPortrait ? button.getCenter().x : button.getRightCenter().x, - isPortrait ? button.getBottomCenter().y : button.getCenter().y + isPortrait ? button.getBottomCenter().y : button.getCenter().y + 5 // +5 because of font not being centered vertically ); });