Skip to content

Commit

Permalink
fix(transition): nav ios transition
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 23, 2018
1 parent 574c346 commit 095f9c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/components/nav/animations/ios.transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function iosTransitionAnimation(Animation: Animation, navEl: HTML

const isRTL = document.dir === 'rtl';
const OFF_RIGHT = isRTL ? '-99.5%' : '99.5%';
const OFF_LEFT = isRTL ? '31%' : '-31%';
const OFF_LEFT = isRTL ? '33%' : '-33%';

const enteringEl = opts.enteringEl;
const leavingEl = opts.leavingEl;
Expand Down Expand Up @@ -179,7 +179,7 @@ export default function iosTransitionAnimation(Animation: Animation, navEl: HTML

const leavingBackBtnText = new Animation();
leavingBackBtnText.addElement(leavingToolBarEle.querySelector('ion-back-button .button-text'));
leavingBackBtnText.fromTo(TRANSLATEX, CENTER, (isRTL ? -115 : 115) + 'px');
leavingBackBtnText.fromTo(TRANSLATEX, CENTER, (isRTL ? -124 : 124) + 'px');
leavingToolBar.add(leavingBackBtnText);

} else {
Expand Down

0 comments on commit 095f9c8

Please sign in to comment.