ColeSmell fix

This commit is contained in:
Hadi Charara 2022-07-08 12:06:40 -04:00
parent 94cff6591b
commit 6baba39b7d

View File

@ -217,8 +217,9 @@ class NavDrawer {
animateToPosition(pos) {
const options = this.options;
const languageAwarePos = globalize.getIsRTL() ? -pos : pos;
requestAnimationFrame(function () {
options.target.style.transform = pos ? 'translateX(' + (globalize.getIsRTL() ? -pos : pos) + 'px)' : 'none';
options.target.style.transform = pos ? 'translateX(' + languageAwarePos + 'px)' : 'none';
});
}