Skip to content

Commit

Permalink
fix(tracks): center control vertically in landscape
Browse files Browse the repository at this point in the history
  • Loading branch information
domi7777 committed Dec 28, 2024
1 parent 6c3920c commit 1ccd91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scenes/LoopTracksScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
});

Expand Down

0 comments on commit 1ccd91a

Please sign in to comment.