mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Replace scrollTo call with scrollTop setter
This commit is contained in:
parent
2446136b47
commit
c0679b7ec8
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ const Discover = ({ urlParams, queryParams }) => {
|
|||
const metaItemsContainerRef = React.useRef();
|
||||
React.useEffect(() => {
|
||||
if (discover.catalog?.content.type === 'Loading') {
|
||||
metaItemsContainerRef.current.scrollTo(0, 0);
|
||||
metaItemsContainerRef.current.scrollTop = 0;
|
||||
}
|
||||
}, [discover.catalog]);
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue