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

Fixed scrollbuttons on desktop

This commit is contained in:
Hadi Charara 2022-07-03 18:21:18 -04:00
parent ea85b4a6d7
commit bcdc67b522
2 changed files with 12 additions and 3 deletions

View file

@ -9,6 +9,7 @@ import dom from '../scripts/dom';
import focusManager from '../components/focusManager';
import ResizeObserver from 'resize-observer-polyfill';
import '../assets/css/scrollstyles.scss';
import { getIsRTL } from '../scripts/globalize';
/**
* Return type of the value.
@ -268,6 +269,9 @@ const scrollerFactory = function (frame, options) {
newPos = within(newPos, pos.start, pos.end);
}
if (getIsRTL())
newPos *= -1;
if (!transform) {
nativeScrollTo(nativeScrollElement, newPos, immediate);
return;