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
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue