mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge d139242ca8
into 7d84185d0e
This commit is contained in:
commit
6cbc50cb09
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ function scrollToWindow({
|
|||
let scrollToPosition: number;
|
||||
|
||||
if (direction === ScrollDirection.RIGHT) {
|
||||
const nextItem = items[lastVisibleIndex];
|
||||
const nextItem = items[lastVisibleIndex] || items[lastVisibleIndex - 1];
|
||||
|
||||
// This will be the position to anchor the item at `lastVisibleIndex` to the start of the view window.
|
||||
const nextItemScrollOffset = lastVisibleIndex * nextItem.offsetWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue