Fix bug with Game Bar when showing it on the right side

This commit is contained in:
redphx
2024-05-12 14:40:15 +07:00
parent 8a1dff3372
commit 4068930db7
2 changed files with 7 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ export class GameBar {
new MicrophoneAction(),
];
// Reverse the action list if Game Bar's position is on the right side
if (position === 'bottom-right') {
this.actions.reverse();
}
// Render actions
for (const action of this.actions) {
$container.appendChild(action.render());