mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
ColeSmell fix
This commit is contained in:
parent
94cff6591b
commit
6baba39b7d
@ -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…
Reference in New Issue
Block a user