diff --git a/src/libraries/navdrawer/navdrawer.js b/src/libraries/navdrawer/navdrawer.js index e991dd7b86..64306c2dbb 100644 --- a/src/libraries/navdrawer/navdrawer.js +++ b/src/libraries/navdrawer/navdrawer.js @@ -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'; }); }