mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-13 18:30:46 +00:00
fix: stuck on board issue
This commit is contained in:
parent
c47a06c667
commit
f70af4efda
1 changed files with 3 additions and 2 deletions
|
|
@ -26,8 +26,9 @@ const MainNavBars = memo(({ className, route, query, children }: Props) => {
|
||||||
const navRef = React.useRef(null);
|
const navRef = React.useRef(null);
|
||||||
const contentRef = React.useRef(null);
|
const contentRef = React.useRef(null);
|
||||||
|
|
||||||
useContentGamepadNavigation(contentRef, route ?? 'board');
|
const navRoute = route === 'continue_watching' ? 'library' : (route ?? '');
|
||||||
useVerticalNavGamepadNavigation(navRef, route ?? 'board');
|
useContentGamepadNavigation(contentRef, navRoute);
|
||||||
|
useVerticalNavGamepadNavigation(navRef, navRoute);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classnames(className, styles['main-nav-bars-container'])}>
|
<div className={classnames(className, styles['main-nav-bars-container'])}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue