mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-12 07:00:28 +00:00
fix(GamepadSupport): disable click on dropdowns
This commit is contained in:
parent
4f3105f354
commit
c302adc815
1 changed files with 4 additions and 2 deletions
|
|
@ -92,8 +92,10 @@ const useContentGamepadNavigation = (
|
|||
elements[0].focus();
|
||||
return;
|
||||
}
|
||||
|
||||
activeElement?.click();
|
||||
const isActiveSelectElement = [activeElement.classList].some((className) => /^select-input/.test(className.toString()));
|
||||
if(!isActiveSelectElement) {
|
||||
activeElement?.click();
|
||||
}
|
||||
};
|
||||
|
||||
gamepad?.on('analog', gamepadHandlerId, handleGamepadNavigation);
|
||||
|
|
|
|||
Loading…
Reference in a new issue