mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-01 10:56:42 +02:00
Minor fix
This commit is contained in:
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@@ -3717,7 +3717,7 @@ class StreamSettings {
|
||||
this.hide();
|
||||
else if (pressedButton === GamepadKey.LB || pressedButton === GamepadKey.RB) {
|
||||
const $currentTab = this.$tabs.querySelector(".bx-active");
|
||||
$currentTab && this.#handleTabsNavigation($currentTab, pressedButton === GamepadKey.LB ? FocusDirection.UP : FocusDirection.DOWN);
|
||||
$currentTab && $currentTab.focus();
|
||||
}
|
||||
if (pressedButton === GamepadKey.UP)
|
||||
direction = FocusDirection.UP;
|
||||
|
@@ -363,9 +363,9 @@ export class StreamSettings {
|
||||
} else if (pressedButton === GamepadKey.B) {
|
||||
this.hide();
|
||||
} else if (pressedButton === GamepadKey.LB || pressedButton === GamepadKey.RB) {
|
||||
// Go to next/previous tab
|
||||
// Focus setting tabs
|
||||
const $currentTab = this.$tabs!.querySelector('.bx-active') as HTMLElement;
|
||||
$currentTab && this.#handleTabsNavigation($currentTab, pressedButton === GamepadKey.LB ? FocusDirection.UP : FocusDirection.DOWN);
|
||||
$currentTab && $currentTab.focus();
|
||||
}
|
||||
|
||||
if (pressedButton === GamepadKey.UP) {
|
||||
|
Reference in New Issue
Block a user