mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Some cleaning and usage of getIsElementRTL
This commit is contained in:
parent
8488f48f99
commit
99a67bee64
3 changed files with 10 additions and 10 deletions
|
@ -9,7 +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';
|
||||
import globalize from '../scripts/globalize';
|
||||
|
||||
/**
|
||||
* Return type of the value.
|
||||
|
@ -269,7 +269,7 @@ const scrollerFactory = function (frame, options) {
|
|||
newPos = within(newPos, pos.start, pos.end);
|
||||
}
|
||||
|
||||
if (getIsRTL())
|
||||
if (globalize.getIsRTL())
|
||||
newPos *= -1;
|
||||
|
||||
if (!transform) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue