mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-10 15:30:40 +00:00
refactor: correct the gamepad lock id
This commit is contained in:
parent
7637620ac5
commit
12af0e1d5e
1 changed files with 2 additions and 2 deletions
|
|
@ -132,10 +132,10 @@ const GamepadProvider = ({ enabled, onGuide, children }: GamepadProviderProps) =
|
|||
|
||||
useEffect(() => {
|
||||
if (onGuide) {
|
||||
on('buttonX', 'gamepad-guide', onGuide);
|
||||
on('buttonX', 'guide', onGuide);
|
||||
}
|
||||
return () => {
|
||||
off('buttonX', 'gamepad-guide');
|
||||
off('buttonX', 'guide');
|
||||
};
|
||||
}, [onGuide]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue