From 21efa5ffdc51e48b42f228e52767c9d25e2b75ce Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:27:23 +0700 Subject: [PATCH] Minor fix in Game Bar --- src/modules/game-bar/game-bar.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/game-bar/game-bar.ts b/src/modules/game-bar/game-bar.ts index 3d4710a..23d1dc9 100644 --- a/src/modules/game-bar/game-bar.ts +++ b/src/modules/game-bar/game-bar.ts @@ -78,7 +78,7 @@ export class GameBar { $container.addEventListener('transitionend', e => { const classList = $container.classList; if (classList.contains('bx-hide')) { - classList.remove('bx-offscreen', 'bx-hide'); + classList.remove('bx-hide'); classList.add('bx-offscreen'); } }); @@ -135,6 +135,8 @@ export class GameBar { } hideBar() { + this.clearHideTimeout(); + // Stop focusing Game Bar clearFocus();