1
0
Fork 0
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:
Hadi Charara 2022-07-05 20:06:04 -04:00
parent 8488f48f99
commit 99a67bee64
3 changed files with 10 additions and 10 deletions

View file

@ -1,7 +1,7 @@
import './emby-scrollbuttons.scss';
import 'webcomponents.js/webcomponents-lite';
import '../emby-button/paper-icon-button-light';
import globalize, { getIsRTL } from '../../scripts/globalize';
import globalize from '../../scripts/globalize';
/* eslint-disable indent */
@ -43,7 +43,7 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
// TODO: Check if hack is really needed
// hack alert add twenty for rounding errors
let localeAwarePos = scrollPos;
if (getIsRTL()) {
if (globalize.getElementIsRTL(scrollButtons)) {
localeAwarePos *= -1;
}