mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
ColeSmell fix
This commit is contained in:
parent
94cff6591b
commit
6baba39b7d
1 changed files with 2 additions and 1 deletions
|
@ -217,8 +217,9 @@ class NavDrawer {
|
||||||
|
|
||||||
animateToPosition(pos) {
|
animateToPosition(pos) {
|
||||||
const options = this.options;
|
const options = this.options;
|
||||||
|
const languageAwarePos = globalize.getIsRTL() ? -pos : pos;
|
||||||
requestAnimationFrame(function () {
|
requestAnimationFrame(function () {
|
||||||
options.target.style.transform = pos ? 'translateX(' + (globalize.getIsRTL() ? -pos : pos) + 'px)' : 'none';
|
options.target.style.transform = pos ? 'translateX(' + languageAwarePos + 'px)' : 'none';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue