From 7a50385420f659a3282b3dfbe6a759d7ca1bef71 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Tue, 1 Oct 2024 00:48:55 +0200 Subject: [PATCH] Also apply text offset fix for Android --- src/components/sprites/Character.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/sprites/Character.vue b/src/components/sprites/Character.vue index ba6219a..d2685fb 100644 --- a/src/components/sprites/Character.vue +++ b/src/components/sprites/Character.vue @@ -139,8 +139,8 @@ const createChatText = (text: Phaser.GameObjects.Text) => { text.setFontSize(13) text.setFontFamily('Arial') - // Fix text alignment on Windows - if (game.device.os.windows) { + // Fix text alignment on Windows and Android + if (game.device.os.windows || game.device.os.android) { text.setOrigin(0.5, 9.75) } } @@ -149,8 +149,8 @@ const createText = (text: Phaser.GameObjects.Text) => { text.setFontSize(13) text.setFontFamily('Arial') - // Fix text alignment on Windows - if (game.device.os.windows) { + // Fix text alignment on Windows and Android + if (game.device.os.windows || game.device.os.android) { text.setOrigin(0.5, 8) } }