1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fixed scrollButtons

This commit is contained in:
Hadi Charara 2022-07-05 21:56:23 -04:00
parent a27ababb3e
commit 0f8c87108b
2 changed files with 25 additions and 7 deletions

View file

@ -140,6 +140,13 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
newPos = scrollPos + scrollSize;
}
if (globalize.getIsRTL() && direction === 'left') {
newPos = scrollPos + scrollSize;
} else if (globalize.getIsRTL()) {
newPos = Math.min(0, scrollPos - scrollSize);
}
console.log(newPos);
scroller.scrollToPosition(newPos, false);
}