mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
fix(Video): content shifts during scroll
This commit is contained in:
parent
16877fa4bf
commit
8ab582080d
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ const Video = ({ className, id, title, thumbnail, season, episode, released, upc
|
|||
React.useEffect(() => {
|
||||
selected && ref.current?.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'nearest',
|
||||
inline: 'start'
|
||||
});
|
||||
}, [selected]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue